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
    
  
  
    
  | # Home Assistant API | |
| esphome: | |
| name: blackbox-x32 | |
| api: | |
| encryption: | |
| key: "khzBNPI53CyaxavRumDUr5I4RQtOJXZuY0XpkKLrwvo=" | |
| ota: | |
| password: "4aefe0cd593f9a410cfaa9fa3e29f50b" | 
  
    
      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
    
  
  
    
  | { | |
| "servers":[ | |
| {"name":"pool.ntp.org"}, | |
| {"name":"asia.pool.ntp.org"}, | |
| {"name":"europe.pool.ntp.org"}, | |
| {"name":"north-america.pool.ntp.org"}, | |
| {"name":"oceania.pool.ntp.org"}, | |
| {"name":"south-america.pool.ntp.org"} | |
| ], | |
| "regions":[ | 
  
    
      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
    
  
  
    
  | /* | |
| * This sketch demonstrates how to scan WiFi networks. | |
| * The API is almost the same as with the WiFi Shield library, | |
| * the most obvious difference being the different file you need to include: | |
| */ | |
| #include "ESP8266WiFi.h" | |
| void setup() { | |
| Serial.begin(115200); | |
| // Serial.setDebugOutput(true); | 
  
    
      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
    
  
  
    
  | echo "---------------------------------------------------" | |
| echo "[STARTING] OPENBUILDS-CONTROL INSTALL SCRIPT: " | |
| echo " Please wait for each step to complete. " | |
| echo "---------------------------------------------------" | |
| echo "(1/10) Updating Repositories..." | |
| sudo apt-get update > /dev/null 2>&1 | |
| echo "(2/10) Upgrading RaspiOS..." | |
| sudo apt-get upgrade -y > /dev/null 2>&1 | |
| echo "(3/10) Installing remote desktop (TightVNC and XRDP)..." | |
| sudo apt install -y tightvncserver > /dev/null 2>&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
    
  
  
    
  | #define STR_GRBL_BUF_MAX_SIZE 80 // size has been increased from 10 to 60 to support grbl [Msg:] Longest is [GC:....] message | |
| //char grblLastMessage[STR_GRBL_BUF_MAX_SIZE] = "[PRB:12.345,10.500,-0.100:1]" ; | |
| char grblLastMessage[STR_GRBL_BUF_MAX_SIZE] = "[MSG:'$H'|'$X' to unlock]" ; | |
| float probeResult[3] ; // 4 because we can support 4 axis | |
| int probeResultIdx = 0; | |
| bool probeResultSuccess = false; | 
  
    
      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
    
  
  
    
  | void handleCommand() | |
| { | |
| byte val = cmdArray[arrayIdxRead+1]; // The command parameter value | |
| switch(cmdArray[arrayIdxRead]) | |
| { | |
| case 'A': // All Motors on/off | |
| if(val == '1') {digitalWrite(12, HIGH);} | |
| else {digitalWrite(12, LOW);} | |
| break; | 
  
    
      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
    
  
  
    
  | /* | |
| Attiny85_batteryMonitor | |
| Ideas borrowed from: https://github.com/unixbigot/Flat-Mate | |
| modified for arduino tiny core by DWhacks | |
| *@@ Voltage trigger levels. | |
| * | 
  
    
      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
    
  
  
    
  | // Function created to obtain chip's actual Vcc voltage value, using internal bandgap reference | |
| // This demonstrates ability to read processors Vcc voltage and the ability to maintain A/D calibration with changing Vcc | |
| // Results printed to serial monitor @ 38400 baud are volt X 100, i.e 5 volts = 500 | |
| // Now works for 168/328 and mega boards. | |
| // Thanks to "Coding Badly" for direct register control for A/D mux | |
| // 1/13/10 "retrolefty" | |
| int battVolts; // made global for wider avaliblity throughout a sketch if needed, example for a low voltage alarm, etc | |
| // value is volts X 100, 5 vdc = 500 | 
  
    
      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
    
  
  
    
  | /* | |
| Version 15-10-2017.002 | |
| Arduino MEGA | |
| - Serial1 (pins 18 and 19) communicates with arduino with grbl shield | |
| GCode Sender. | |
| Hardware: Arduino Uno, | |
| ,analog thumbstick (small joystick, with intgrated push button) | |
| ,sd card reader with SPI interface | 
  
    
      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
    
  
  
    
  | //Compatible with the Arduino IDE 1.0 | |
| #include <Wire.h> | |
| #include <LiquidCrystal_I2C.h> | |
| #include <Button.h> // from (https://github.com/madleech/Button/) | |
| LiquidCrystal_I2C lcd(0x27,20,4); // set the LCD address to 0x27 for a 16 chars and 2 line display | |
| Button button1(2); // Connect your button between pin 2 and GND | |
| Button button2(3); // Connect your button between pin 3 and GND | |
| Button button3(4); // Connect your button between pin 4 and GND |