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
//************************************************************ | |
// this is a simple example that uses the painlessMesh library | |
// | |
// 1. sends a silly message to every node on the mesh at a random time betweew 1 and 5 seconds | |
// 2. prints anything it recieves to Serial.print | |
// | |
// prerequisites | |
// - Arduino JSON https://github.com/bblanchon/ArduinoJson | |
// | |
// |
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/env python | |
import sys | |
import os | |
import csv | |
state = 0 | |
count = 0 | |
output = [] |
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
NAME toBCD | |
PUBLIC toBCD | |
RSEG CODE | |
toBCD MOV #16, R15 ; Loop Counter | |
MOV R12, R14 ; Move the input to R14 so we can use R12 for our output | |
CLR R12 ; Clear our output register | |
L$1 RLA R14 ; Binary MSB to carry | |
DADD R12,R12 ; Decimal Acc into R12 |