Skip to content
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

Support for Arduino WiFi Rev 2? (ATMEGA4809) #62

Open
ghost opened this issue Jan 19, 2019 · 1 comment
Open

Support for Arduino WiFi Rev 2? (ATMEGA4809) #62

ghost opened this issue Jan 19, 2019 · 1 comment

Comments

@ghost
Copy link

ghost commented Jan 19, 2019

Hello!

I have been using automaton on my Arduino Uno for the past 2 months. Today I upgraded my Arduino to a WIFI REV 2, because I need IoT capabilities for my project. When I tried to compile the file for REV 2, I got the following errors:

/Users/felipe/Documents/Arduino/libraries/Automaton/src/Atm_bit.cpp: In member function 'virtual void Atm_bit::action(int)':
/Users/felipe/Documents/Arduino/libraries/Automaton/src/Atm_bit.cpp:29:82: error: cannot convert 'bool' to 'PinStatus' for argument '2' to 'void digitalWrite(pin_size_t, PinStatus)'
       if ( indicator > -1 ) digitalWrite( indicator, !LOW != !indicatorActiveLow );
                                                                                  ^
/Users/felipe/Documents/Arduino/libraries/Automaton/src/Atm_bit.cpp:34:83: error: cannot convert 'bool' to 'PinStatus' for argument '2' to 'void digitalWrite(pin_size_t, PinStatus)'
       if ( indicator > -1 ) digitalWrite( indicator, !HIGH != !indicatorActiveLow );
                                                                                   ^
/Users/felipe/Documents/Arduino/libraries/Automaton/src/Atm_digital.cpp: In member function 'virtual void Atm_digital::action(int)':
/Users/felipe/Documents/Arduino/libraries/Automaton/src/Atm_digital.cpp:39:83: error: cannot convert 'bool' to 'PinStatus' for argument '2' to 'void digitalWrite(pin_size_t, PinStatus)'
       if ( indicator > -1 ) digitalWrite( indicator, !HIGH != !indicatorActiveLow );
                                                                                   ^
/Users/felipe/Documents/Arduino/libraries/Automaton/src/Atm_digital.cpp:43:82: error: cannot convert 'bool' to 'PinStatus' for argument '2' to 'void digitalWrite(pin_size_t, PinStatus)'
       if ( indicator > -1 ) digitalWrite( indicator, !LOW != !indicatorActiveLow );
                                                                                  ^
/Users/felipe/Documents/Arduino/libraries/Automaton/src/Atm_controller.cpp: In member function 'virtual void Atm_controller::action(int)':
/Users/felipe/Documents/Arduino/libraries/Automaton/src/Atm_controller.cpp:34:82: error: cannot convert 'bool' to 'PinStatus' for argument '2' to 'void digitalWrite(pin_size_t, PinStatus)'
       if ( indicator > -1 ) digitalWrite( indicator, !LOW != !indicatorActiveLow );
                                                                                  ^
/Users/felipe/Documents/Arduino/libraries/Automaton/src/Atm_controller.cpp:39:83: error: cannot convert 'bool' to 'PinStatus' for argument '2' to 'void digitalWrite(pin_size_t, PinStatus)'
       if ( indicator > -1 ) digitalWrite( indicator, !HIGH != !indicatorActiveLow );

I am only using the Automaton Atm_analog machine for the code that generated error shown above.

I know that Automaton is not written for the ATMEGA4809 chip and that there are some compatibility problems.

However, I know that I can fix these issues by editing the library source code as it is explained in the following post (for another library):

https://forum.arduino.cc/index.php?topic=584322.0

I do not feel confident enough to update the library on myself, I am wondering if anyone can give me some sort of direction on how to approach this.

Thanks,

F

@tinkerspy
Copy link
Owner

I don't know if I want to support this strange move from Arduino. I think they should've been able to keep things backwards compatible. Maybe if the Wifi v2 turns out to be as popular as the ESP range.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant