This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import usocket | |
class Response: | |
def __init__(self, f): | |
self.raw = f | |
self.encoding = "utf-8" | |
self._cached = None | |
def close(self): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from Maix import GPIO | |
from machine import UART | |
from fpioa_manager import fm, board_info | |
import lcd, image | |
import usocket, network, time | |
fm.register(8, fm.fpioa.GPIOHS0) | |
wifi_en=GPIO(GPIO.GPIOHS0,GPIO.OUT) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import network, time | |
import time | |
from Maix import GPIO | |
from machine import UART | |
from fpioa_manager import fm, board_info | |
import socket, network, time | |
import lcd, image | |
import network, socket, time, sensor, image | |
fm.register(0, fm.fpioa.GPIOHS1, force=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+-- @google/[email protected] | |
+-- @line/[email protected] | |
+-- @sentry/[email protected] | |
+-- @types/[email protected] | |
+-- @types/[email protected] | |
+-- @types/[email protected] | |
+-- @types/[email protected] | |
+-- @types/[email protected] | |
+-- @types/[email protected] | |
+-- @types/[email protected] |
install log
cd prl_fs/SharedFolders/Guest/Linux/prl_fs && make CC=cc
make[1]: Entering directory '/usr/lib/parallels-tools/kmods/prl_fs/SharedFolders/Guest/Linux/prl_fs'
make -C /lib/modules/5.0.0-25-generic/build M=/usr/lib/parallels-tools/kmods/prl_fs/SharedFolders/Guest/Linux/prl_fs CC=cc
make[2]: Entering directory '/usr/src/linux-headers-5.0.0-25-generic'
CC [M] /usr/lib/parallels-tools/kmods/prl_fs/SharedFolders/Guest/Linux/prl_fs/super.o
/usr/lib/parallels-tools/kmods/prl_fs/SharedFolders/Guest/Linux/prl_fs/super.c: In function 'prlfs_remount':
/usr/lib/parallels-tools/kmods/prl_fs/SharedFolders/Guest/Linux/prl_fs/super.c:119:21: error: 'MS_RDONLY' undeclared (first use in this function); did you mean 'IS_RDONLY'?
if ( (!((*flags) & MS_RDONLY) && PRLFS_SB(sb)->readonly) ||
install log
cd prl_fs/SharedFolders/Guest/Linux/prl_fs && make CC=cc
make[1]: Entering directory '/usr/lib/parallels-tools/kmods/prl_fs/SharedFolders/Guest/Linux/prl_fs'
make -C /lib/modules/5.0.0-25-generic/build M=/usr/lib/parallels-tools/kmods/prl_fs/SharedFolders/Guest/Linux/prl_fs CC=cc
make[2]: Entering directory '/usr/src/linux-headers-5.0.0-25-generic'
CC [M] /usr/lib/parallels-tools/kmods/prl_fs/SharedFolders/Guest/Linux/prl_fs/super.o
/usr/lib/parallels-tools/kmods/prl_fs/SharedFolders/Guest/Linux/prl_fs/super.c: In function 'prlfs_remount':
/usr/lib/parallels-tools/kmods/prl_fs/SharedFolders/Guest/Linux/prl_fs/super.c:119:21: error: 'MS_RDONLY' undeclared (first use in this function); did you mean 'IS_RDONLY'?
if ( (!((*flags) & MS_RDONLY) && PRLFS_SB(sb)->readonly) ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py | |
python get-pip.py | |
sudo pip3 install -U virtualenv | |
sudo pip3 install -U virtualenvwrapper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <mySD.h> | |
#include <Wire.h> // must be included here so that Arduino library object file references work | |
#include <RtcDS3231.h> | |
RtcDS3231<TwoWire> Rtc(Wire); | |
#define countof(a) (sizeof(a) / sizeof(a[0])) | |
#define LED_BUILTIN 22 //Blink pin | |
File sdcard; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void sensorTask(void *parameter) | |
{ | |
int delay; | |
vTaskDelay(10 * 1000 / portTICK_PERIOD_MS); | |
while (1) | |
{ | |
sdcard = SD.open(filenamestring, FILE_WRITE); | |
digitalWrite(LED_BUILTIN, HIGH); | |
if (sdcard && rtcOk) { | |
sdcard.print(datestring); |