-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arduino IDE compatible #3
base: master
Are you sure you want to change the base?
Conversation
- Add verification for AVR ATmega328p MCU and 16Mhz clock - Remove duplicate delayMicroseconds() function - Fix TIMER2 settings because it's changed by "wiring.c" - Add void loop() function
Always great if someone has the guts to do things completely different 👍 Before giving a opinion on the changes, can you add a proper diff between the two versions? |
Its operation is the same, all the original features have been implemented and the new additions have been left as optional. MCU / Board:
Compiler / Uploader:
I think these changes warrant a major version update after 6 years. So I switched to version 2, but it really works the same (or just a little better), so it may not be correct. |
With what tests have you confirmed this statement? |
…ve pulses arround 3500 usecs
Hi.
I want to share the Arduino compatible version of "pilight-usb-nano" firmware.
The sketch is ready to use with standard Arduino IDE and runs on any Arduino compatible board.
The original main code hardly changes, it is essentially the same, so the operation will be practically the same as the original, maybe with greater accuracy.
Only the power saving settings have been removed as they are not very useful on a USB powered device.
I added a GitHub Action to ensure it compiles correctly on different platforms like as AVR, SAM boards (32-bit ARM Cortex-M3), SAMD boards (32-bit ARM Cortex-M0+), and ESP8266.
https://github.com/latchdevel/pilight-usb-nano/actions/workflows/CompileTests.yml
I think it is more useful and easier to use than the current version. I hope it can merge to master branch.
Let me know if you need any additional explanation or any changes are necessary.
Best regards.