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
// configuring an Arduino sketch to output Serial data over STLINK interface | |
#define serialDebug Serial | |
HardwareSerial stlinkSerial(PIN_VCP_RX, PIN_VCP_TX); | |
void setup() | |
{ | |
#ifdef serialDebug | |
stlinkSerial.begin(115200); | |
const size_t usb_timeout_ms = 3000; |
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 <Arduino.h> | |
#include <Adafruit_GFX.h> | |
#include <SPI.h> | |
#include <Wire.h> | |
#include <Adafruit_ILI9341.h> | |
#include <Fonts/FreeSans9pt7b.h> | |
#include <Adafruit_NeoPixel.h> | |
#include <BBQ10Keyboard.h> | |
#include <Notecard.h> | |
#include "base64.hpp" |
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 <Arduino.h> | |
#include <NanoEdgeAI.h> | |
#include <Adafruit_LIS3DH.h> | |
#include <Notecard.h> | |
Adafruit_LIS3DH lis = Adafruit_LIS3DH(); | |
#define LEARNING_ITERATIONS 30 | |
float input_user_buffer[DATA_INPUT_USER * AXIS_NUMBER]; // Buffer of input values | |
#define PRODUCT_UID "<your-product-uid>" |
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 <Wire.h> | |
#include <Adafruit_LIS3DH.h> | |
Adafruit_LIS3DH lis = Adafruit_LIS3DH(); | |
void setup(void) | |
{ | |
Serial.begin(115200); | |
while (!Serial) | |
delay(10); |
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
#!/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 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 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 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); |