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

'TXLED1' was not declared in this scope #1

Open
teewuane opened this issue Jun 1, 2016 · 2 comments
Open

'TXLED1' was not declared in this scope #1

teewuane opened this issue Jun 1, 2016 · 2 comments

Comments

@teewuane
Copy link

teewuane commented Jun 1, 2016

Does this need to be defined up above with the reset of the defines?

Or does something need to be imported?

Full error message:

Arduino: 1.6.9 (Mac OS X), Board: "Arduino/Genuino Uno"

WARNING: Category '' in library UIPEthernet is not valid. Setting to 'Uncategorized'
/Users/teewuane/Projects/rccar/rc_car_throttle_limiter/rc_car_throttle_limiter/rc_car_throttle_limiter/rc_car_throttle_limiter.ino: In function 'void setup()':
/Users/teewuane/Projects/rccar/rc_car_throttle_limiter/rc_car_throttle_limiter/rc_car_throttle_limiter/rc_car_throttle_limiter.ino:143:30: warning: large integer implicitly truncated to unsigned type [-Woverflow]
flash_led(5, 100, 500);
^
/Users/teewuane/Projects/rccar/rc_car_throttle_limiter/rc_car_throttle_limiter/rc_car_throttle_limiter/rc_car_throttle_limiter.ino: In function 'void loop()':
rc_car_throttle_limiter:205: error: 'TXLED1' was not declared in this scope
TXLED1;
^
rc_car_throttle_limiter:207: error: 'TXLED0' was not declared in this scope
TXLED0;
^
rc_car_throttle_limiter:218: error: 'TXLED1' was not declared in this scope
TXLED1;
^
rc_car_throttle_limiter:247: error: 'TXLED1' was not declared in this scope
TXLED1;
^
rc_car_throttle_limiter:266: error: 'TXLED1' was not declared in this scope
TXLED1;
^
/Users/teewuane/Projects/rccar/rc_car_throttle_limiter/rc_car_throttle_limiter/rc_car_throttle_limiter/rc_car_throttle_limiter.ino:271:34: warning: large integer implicitly truncated to unsigned type [-Woverflow]
flash_led(5, 100, 500);
^
rc_car_throttle_limiter:287: error: 'TXLED0' was not declared in this scope
TXLED0;
^
rc_car_throttle_limiter:291: error: 'TXLED1' was not declared in this scope
TXLED1;
^
/Users/teewuane/Projects/rccar/rc_car_throttle_limiter/rc_car_throttle_limiter/rc_car_throttle_limiter/rc_car_throttle_limiter.ino: In function 'void flash_led(uint8_t, uint8_t, uint8_t)':
rc_car_throttle_limiter:404: error: 'TXLED1' was not declared in this scope
TXLED1;
^
rc_car_throttle_limiter:406: error: 'TXLED0' was not declared in this scope
TXLED0;
^
exit status 1
'TXLED1' was not declared in this scope

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

@teewuane
Copy link
Author

teewuane commented Jun 2, 2016

I just created some functions called TXLED1 and TXLED0 which tell the LED on pin 13 to turn on and off. Next step is to make the braking feature optional since one of my ESCs does not have braking. It just goes straight to reverse.

@Trickx
Copy link

Trickx commented Dec 29, 2016

TXLED1 and TXLED0 are defines available on some Arduino boards, such as the Micro.
I forked the original sources and added support in the same way for Nano bards.
On Nano board the inbuilt led on pin 13 is used correspondingly, see:
Trickx@5dfeef8
Additionally, I pull request was originated.

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

2 participants