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

Working with Arduino Leonardo #8

Closed
omarecd opened this issue Jul 3, 2020 · 4 comments
Closed

Working with Arduino Leonardo #8

omarecd opened this issue Jul 3, 2020 · 4 comments
Assignees
Labels
Grove_Air_quality_Sensor Label for Grove_Air_quality_Sensor UAY Unassigned yet

Comments

@omarecd
Copy link

omarecd commented Jul 3, 2020

Dear team.
Thanks for the great work with the sensor.

Question:
To test that everything worked fine, I started with the example provided on the library. When I compile for the board Arduino Uno it works, however when I compile for the Arduino Leonardo, it doesn't work (I should use Leonardo for my project).

  • Does this library works with an Arduino Leonardo ? (I need to use Arduino Leonardo)
    Kind regards.
    Omar C.

Ps.
I also trying modifying the .cpp file, replacing the current values (like TCCR2A) by the proposed values (TCCR0A). Then, compilation was "ok", however the sensor is not behaving as expected. Any ideas? Thanks.

=================
Error msg starts like that:

Arduino: 1.8.10 (Linux), Board: "Arduino Leonardo"

In file included from /home/o/Downloads/arduino-1.8.10/hardware/arduino/avr/cores/arduino/Arduino.h:30:0,
from /home/o/Arduino/libraries/Grove_-Air_quality_sensor/AirQuality.h:23,
from /home/o/Arduino/libraries/Grove
-Air_quality_sensor/examples/AirQuality_Sensor/AirQuality_Sensor.ino:6:
/home/o/Arduino/libraries/Grove
-Air_quality_sensor/examples/AirQuality_Sensor/AirQuality_Sensor.ino: In function 'void TIMER2_OVF_vect()':
/home/o/Arduino/libraries/Grove
-_Air_quality_sensor/examples/AirQuality_Sensor/AirQuality_Sensor.ino:30:5: warning: 'TIMER2_OVF_vect' appears to be a misspelled 'signal' handler, missing '_vector' prefix [-Wmisspelled-isr]
ISR(TIMER2_OVF_vect)
^
/home/o/Arduino/libraries/Grove
-Air_quality_sensor/AirQuality.cpp: In member function 'void AirQuality::init(int)':
/home/o/Arduino/libraries/Grove
-Air_quality_sensor/AirQuality.cpp:80:5: error: 'TCCR2A' was not declared in this scope
TCCR2A=0;
//normal model
^~~~~~
/home/o/Arduino/libraries/Grove
-_Air_quality_sensor/AirQuality.cpp:80:5: note: suggested alternative: 'TCCR0A'
TCCR2A=0;//normal model
^~~~~~
TCCR0A

@Pillar1989
Copy link
Member

I looked at the code and it wasn't on our GitHub. @omarecd

@albtrentadue
Copy link

@omarecd please check issue #9. I bet that now the library should work also for Leonardo

@MatthewJeffson MatthewJeffson added UAY Unassigned yet Grove_Air_quality_Sensor Label for Grove_Air_quality_Sensor labels Oct 9, 2024
@Lesords Lesords self-assigned this Oct 15, 2024
@Lesords
Copy link
Contributor

Lesords commented Oct 16, 2024

Hello,

I'm very sorry to have kept you waiting so long.

Do you still have this problem now?

@Lesords
Copy link
Contributor

Lesords commented Oct 30, 2024

Hello,

I'm going to close this issue, feel free to re-open it if you have any other questions.

[Autocommentary]

@Lesords Lesords closed this as completed Oct 30, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in Issues and PR Assemble Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Grove_Air_quality_Sensor Label for Grove_Air_quality_Sensor UAY Unassigned yet
Projects
Status: Done
Development

No branches or pull requests

5 participants