### TODO Treppe | ### TODO Treppe | ||||
- dynamic lighting with ldr | - dynamic lighting with ldr | ||||
- http control over active pwm ... => set_active_pwm() | - http control over active pwm ... => set_active_pwm() | ||||
-> is implemntiert, kann mit % oder abs eingestellt werden | |||||
- testing if dimming crashes when two animations | - testing if dimming crashes when two animations | ||||
-> ldr does not interrupt animation, animation get's finished and stairs fade out -> FSM works without collisions | -> ldr does not interrupt animation, animation get's finished and stairs fade out -> FSM works without collisions | ||||
- interrupt to pending from sensors | - interrupt to pending from sensors | ||||
- settings struct | - settings struct | ||||
-> implemented with EEPROM | |||||
- script for gdb on windows | - script for gdb on windows | ||||
- dynamic time for dimming => set_time_per_stair() | - dynamic time for dimming => set_time_per_stair() | ||||
- welcome animation ? | - welcome animation ? |
Serial.printf("Treppe: stufen=%d\n", stufen); | Serial.printf("Treppe: stufen=%d\n", stufen); | ||||
} | } | ||||
void Treppe::saveParam() { | void Treppe::saveParam() { | ||||
EEPROM.put(EEP_START_ADDR, | EEPROM.put(EEP_START_ADDR, | ||||
parameters); // copy Parameters so "EEPROM"-section in RAM | parameters); // copy Parameters so "EEPROM"-section in RAM |
set serial baud 460800 | set serial baud 460800 | ||||
file .pio/build/debug/firmware.elf | file .pio/build/debug/firmware.elf | ||||
target remote \\.\COM23 | |||||
target remote /dev/ttyUSB0 | |||||
thb loop | thb loop |
set remote hardware-breakpoint-limit 1 | |||||
set remote hardware-watchpoint-limit 1 | |||||
set remote interrupt-on-connect on | |||||
set remote kill-packet off | |||||
set remote symbol-lookup-packet off | |||||
set remote verbose-resume-packet off | |||||
mem 0x20000000 0x3fefffff ro cache | |||||
mem 0x3ff00000 0x3fffffff rw | |||||
mem 0x40000000 0x400fffff ro cache | |||||
mem 0x40100000 0x4013ffff rw cache | |||||
mem 0x40140000 0x5fffffff ro cache | |||||
mem 0x60000000 0x60001fff rw | |||||
set serial baud 460800 | |||||
file .pio/build/debug/firmware.elf | |||||
target remote \\.\COM23 | |||||
thb loop |
SET GDB_PATH=C:\Users\simon\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.0-newlib4.0.0-gnu23-48f7b08\bin\xtensa-lx106-elf-gdb.exe | |||||
echo "Starting gdb" | |||||
echo %GDB_PATH% | |||||
%GDB_PATH% -x ".\scripts\gdboptions_win" |
#!/bin/bash | #!/bin/bash | ||||
GDB_PATH=~/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.0-newlib4.0.0-gnu23-48f7b08/bin/xtensa-lx106-elf-gdb | GDB_PATH=~/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.0-newlib4.0.0-gnu23-48f7b08/bin/xtensa-lx106-elf-gdb | ||||
cd .. | |||||
echo "Starting gdb" | echo "Starting gdb" | ||||
$GDB_PATH -x scripts/gdboptions | |||||
$GDB_PATH -x scripts/gdboptions |