This file contains hidden or 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
#!/usr/bin/python3 | |
import notecard | |
from notecard import hub | |
from periphery import I2C | |
import time | |
#import serial | |
# init both notecards | |
productUID = "com.your.productuid:here" | |
port = I2C("/dev/i2c-1") |
This file contains hidden or 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
#!/usr/bin/python3 | |
import notecard | |
from notecard import hub | |
from periphery import I2C | |
import cv2 | |
import keys | |
import time | |
from picamera2 import Picamera2 | |
from smbus2 import SMBus | |
from bme280 import BME280 |
This file contains hidden or 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 <Arduino.h> | |
#include <Wire.h> | |
#include <Notecard.h> | |
#include <SD.h> | |
Notecard notecard; | |
File myImageFile; | |
Sd2Card card; | |
SdVolume volume; | |
SdFile root; |
This file contains hidden or 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
const SerialPort = require('serialport') | |
const Readline = require('@serialport/parser-readline') | |
const port = new SerialPort('/dev/ttys001') // ** softcard ** | |
//const port = new SerialPort('/dev/cu.usbmodemNOTE1') // ** notecard ** | |
const parser = port.pipe(new Readline({ delimiter: '\r' })) | |
port.on('open', showPortOpen); | |
port.on('close', showPortClose); | |
port.on('error', showError); | |
//port.on('data', showSerialData); |
NewerOlder