hardware: beautify schematic, add values
parent
37579c511c
commit
0522262c84
|
@ -40,6 +40,8 @@ void setup() {
|
|||
Serial1.begin(9600);
|
||||
|
||||
pinMode(PUSHBUTTON, INPUT);
|
||||
pinMode(LED_BUILTIN, OUTPUT);
|
||||
pinMode(4, OUTPUT);
|
||||
|
||||
lcd.init();
|
||||
lcd.backlight();
|
||||
|
@ -175,13 +177,13 @@ void communicateChanges(){
|
|||
//First: toggle the interrupt pin until a positive response is received from teensy
|
||||
unsigned long t1 = millis();
|
||||
boolean b = false;
|
||||
|
||||
|
||||
digitalWrite(LED_BUILTIN, HIGH);
|
||||
while(Serial1.read() != 42){ //The answer to Life, Universe, And Everything Else
|
||||
if(millis() - t1 > 500){
|
||||
if(millis() - t1 > 100){
|
||||
b = !b;
|
||||
t1 = millis();
|
||||
if(b) INTERRUPT_ON;
|
||||
else INTERRUPT_OFF;
|
||||
digitalWrite(4, b);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -214,6 +216,7 @@ void communicateChanges(){
|
|||
t1 = millis();
|
||||
}
|
||||
}
|
||||
digitalWrite(LED_BUILTIN, LOW);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
.pio
|
||||
.vscode/.browse.c_cpp.db*
|
||||
.vscode/c_cpp_properties.json
|
||||
.vscode/launch.json
|
||||
.vscode/ipch
|
|
@ -8,8 +8,8 @@
|
|||
{
|
||||
"name": "PlatformIO",
|
||||
"includePath": [
|
||||
"/home/emamaker/pi_server/Projects/FunctionGenerator/FunctionGen-Teensy/Teensy3.5DDS/Firmware/include",
|
||||
"/home/emamaker/pi_server/Projects/FunctionGenerator/FunctionGen-Teensy/Teensy3.5DDS/Firmware/src",
|
||||
"/home/emamaker/Teensy3.5DDS/Firmware/Teensy/include",
|
||||
"/home/emamaker/Teensy3.5DDS/Firmware/Teensy/src",
|
||||
"/home/emamaker/.platformio/packages/framework-arduinoteensy/cores/teensy3",
|
||||
"/home/emamaker/.platformio/packages/framework-arduinoteensy/libraries/ADC",
|
||||
"/home/emamaker/.platformio/packages/framework-arduinoteensy/libraries/AccelStepper/src",
|
||||
|
@ -108,13 +108,14 @@
|
|||
"/home/emamaker/.platformio/packages/framework-arduinoteensy/libraries/ks0108",
|
||||
"/home/emamaker/.platformio/packages/framework-arduinoteensy/libraries/ssd1351",
|
||||
"/home/emamaker/.platformio/packages/framework-arduinoteensy/libraries/x10",
|
||||
"/home/emamaker/.platformio/packages/tool-unity",
|
||||
""
|
||||
],
|
||||
"browse": {
|
||||
"limitSymbolsToIncludedHeaders": true,
|
||||
"path": [
|
||||
"/home/emamaker/pi_server/Projects/FunctionGenerator/FunctionGen-Teensy/Teensy3.5DDS/Firmware/include",
|
||||
"/home/emamaker/pi_server/Projects/FunctionGenerator/FunctionGen-Teensy/Teensy3.5DDS/Firmware/src",
|
||||
"/home/emamaker/Teensy3.5DDS/Firmware/Teensy/include",
|
||||
"/home/emamaker/Teensy3.5DDS/Firmware/Teensy/src",
|
||||
"/home/emamaker/.platformio/packages/framework-arduinoteensy/cores/teensy3",
|
||||
"/home/emamaker/.platformio/packages/framework-arduinoteensy/libraries/ADC",
|
||||
"/home/emamaker/.platformio/packages/framework-arduinoteensy/libraries/AccelStepper/src",
|
||||
|
@ -213,6 +214,7 @@
|
|||
"/home/emamaker/.platformio/packages/framework-arduinoteensy/libraries/ks0108",
|
||||
"/home/emamaker/.platformio/packages/framework-arduinoteensy/libraries/ssd1351",
|
||||
"/home/emamaker/.platformio/packages/framework-arduinoteensy/libraries/x10",
|
||||
"/home/emamaker/.platformio/packages/tool-unity",
|
||||
""
|
||||
]
|
||||
},
|
||||
|
@ -220,14 +222,12 @@
|
|||
"PLATFORMIO=50101",
|
||||
"__MK64FX512__",
|
||||
"ARDUINO_TEENSY35",
|
||||
"TEENSY_OPT_FASTEST_PURE_CODE_LTO",
|
||||
"USB_SERIAL",
|
||||
"ARDUINO=10805",
|
||||
"TEENSYDUINO=153",
|
||||
"CORE_TEENSY",
|
||||
"F_CPU=168000000L",
|
||||
"F_CPU=120000000L",
|
||||
"LAYOUT_US_ENGLISH",
|
||||
"__PURE_CODE__",
|
||||
""
|
||||
],
|
||||
"cppStandard": "c++14",
|
||||
|
@ -237,7 +237,6 @@
|
|||
"-mcpu=cortex-m4",
|
||||
"-mfloat-abi=hard",
|
||||
"-mfpu=fpv4-sp-d16",
|
||||
"-mpure-code",
|
||||
""
|
||||
]
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
"type": "platformio-debug",
|
||||
"request": "launch",
|
||||
"name": "PIO Debug",
|
||||
"executable": "/home/emamaker/pi_server/Projects/FunctionGenerator/FunctionGen-Teensy/Teensy3.5DDS/Firmware/.pio/build/teensy35/firmware.elf",
|
||||
"executable": "/home/emamaker/Teensy3.5DDS/Firmware/Teensy/.pio/build/teensy35/firmware.elf",
|
||||
"projectEnvName": "teensy35",
|
||||
"toolchainBinDir": "/home/emamaker/.platformio/packages/toolchain-gccarmnoneeabi/bin",
|
||||
"internalConsoleOptions": "openOnSessionStart",
|
||||
|
@ -26,7 +26,7 @@
|
|||
"type": "platformio-debug",
|
||||
"request": "launch",
|
||||
"name": "PIO Debug (skip Pre-Debug)",
|
||||
"executable": "/home/emamaker/pi_server/Projects/FunctionGenerator/FunctionGen-Teensy/Teensy3.5DDS/Firmware/.pio/build/teensy35/firmware.elf",
|
||||
"executable": "/home/emamaker/Teensy3.5DDS/Firmware/Teensy/.pio/build/teensy35/firmware.elf",
|
||||
"projectEnvName": "teensy35",
|
||||
"toolchainBinDir": "/home/emamaker/.platformio/packages/toolchain-gccarmnoneeabi/bin",
|
||||
"internalConsoleOptions": "openOnSessionStart",
|
||||
|
|
Loading…
Reference in New Issue