Closed TokenTotem closed 3 years ago
Hi Thanks! Does this work also for ESP8266?
Hello, I've not tested with ESP8266 but it should work.
Hi @TokenTotem @lfrohman @sentamugo7 Can you do a PR please?
Thanks!
please test this pull request before merge. Thanks.
At line 26 and 46 in oscillator.h, variable "O" is defined as a 'unsigned int' instead of 'int'. "O" have negative value such as when Otto walk (Otto9.cpp line 254). There is no apparent impact on Arduino/Atmega but math results are out of wack on ESP32.
Solution: Change data type from "unsigned int" to "int" for variable "O" and "A" at lines 25,26,45,46 in oscillator.h