miniterm.py `udevserial -v ID_MODEL=Arduino_Due -v SUBSYSTEM=tty` 115200 --raw
esptool32 --port `udevserial -v ID_MODEL=Arduino_Due -v SUBSYSTEM=tty` --before no_reset --after no_reset --baud 115200 write_flash 0x10000 ~/devel/ESP32/esp-idf/examples/bluetooth/gatt_server/build/gatt_server_demos.bin
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
/* | |
Blink | |
Turns on an LED on for one second, then off for one second, repeatedly. | |
This example code is in the public domain. | |
*/ | |
// Pin 13 has an LED connected on most Arduino boards. | |
// give it a name: | |
int led = 13; // <--- CHANGE THIS LED PIN TO 81 or 82 FOR LED2 or LED3 ON MACCHINA |
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
uint8_t readline(char *buff, uint8_t maxbuff, uint16_t timeout) { | |
uint16_t buffidx = 0; | |
boolean timeoutvalid = true; | |
if (timeout == 0) timeoutvalid = false; | |
while (true) { | |
if (buffidx > maxbuff) { | |
//Serial.println(F("SPACE")); | |
break; | |
} |
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
// read the CCID | |
fona.getSIMCCID(replybuffer); // make sure replybuffer is at least 21 bytes! | |
Serial.print(F("SIM CCID = ")); | |
Serial.println(replybuffer); | |
break; | |
} | |
case 'i': | |
{ | |
// read the RSSI |
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
/* | |
* Example based on code found here. | |
* https://github.com/iwanders/OBD9141 | |
* | |
* Put the "OBD9141 in Libraries folder. | |
* | |
*/ | |
#include "OBD9141.h" | |
#include "SamNonDuePin.h" |
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
/* | |
* Example based on code found here. | |
* https://github.com/iwanders/OBD9141 | |
* | |
* Put the "OBD9141 in Libraries folder. | |
* | |
*/ | |
#include "OBD9141.h" |
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
/* | |
* MPG LED display using Adafruit NeoPixel and Macchina M2 with a pre-CAN bus | |
* ISO9141 (K-line) based vehicle. | |
* | |
* These parts are used in this project: | |
* | |
* https://www.macchina.cc/content/m2-under-dash | |
* https://www.adafruit.com/product/2869 | |
* | |
* Requires "Macchina M2" board to be installed and selected. For instructions, go here: |
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
debian@beaglebone:/opt/source/bb.org-overlays/src/arm$ ls | |
ACME-revB.dts BB-I2C2-RTC-DS1338.dts cape-univ-emmc-00A0.dts | |
AM335X-20-00A0.dts BBIM-00A0.dts cape-universal-00A0.dts | |
AM335X-I2C1-400-00A0.dts bb-justboom-amp-00A0.dts cape-universala-00A0.dts | |
AM335X-I2C2-400-00A0.dts bb-justboom-dac-00A0.dts cape-universalh-00A0.dts | |
AM335X-PRU-RPROC-4-14-TI-00A0.dts bb-justboom-digi-00A0.dts cape-universaln-00A0.dts | |
AM335X-PRU-RPROC-4-14-TI-PRUCAPE-00A0.dts BB-LCD-ADAFRUIT-18-SPI1-00A0.dts cape-univ-hdmi-00A0.dts | |
AM335X-PRU-RPROC-4-19-TI-00A0.dts BB-mBC1-ETH-CLICK.dts dev-USB-PWR-CTL-00A1.dts | |
AM335X-PRU-RPROC-4-19-TI-PRUCAPE-00A0.dts BB-mBC1-ETH-WIZ-CLICK.dts DLPDLCR2000-00A0.dts | |
AM335X-PRU-RPROC-4-4-TI-00A0.dts BB-mBC1-RTC-5-CLICK.dts DVK530-LCD4-01-00A0.dts |
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
//Modified from this library to blink LED: | |
//https://github.com/miwagner/ESP32-Arduino-CAN | |
// | |
//Follow these instructions to install ESP32 board files: | |
//https://github.com/espressif/arduino-esp32/blob/master/docs/arduino-ide/boards_manager.md | |
#include <ESP32CAN.h> | |
#include <CAN_config.h> | |
CAN_device_t CAN_cfg; // CAN Config |
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
ID: 100FFEE | |
Extended: Yes | |
Length: 6 | |
23 FE 1D 7A 1D 7A | |
ID: 340 | |
Extended: No | |
Length: 4 | |
23 FE 1D 7A |
OlderNewer