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

PinMode(13, OUTPUT) in Arduino code is used twice #189

Open
redcubie opened this issue Jan 5, 2018 · 1 comment
Open

PinMode(13, OUTPUT) in Arduino code is used twice #189

redcubie opened this issue Jan 5, 2018 · 1 comment

Comments

@redcubie
Copy link

redcubie commented Jan 5, 2018

In Moppy.ino there is double mention of pin no. 13:

void setup(){
  pinMode(13, OUTPUT);// Pin 13 has an LED connected on most Arduino boards
  [pinMode(2-12, OUTPUT)]
  pinMode(13, OUTPUT); // Direction 6

But you could just do:

void setup(){
//Remove(d) first pinMode(13, OUTPUT)
  [pinMode(2-12, OUTPUT)]
  pinMode(13, OUTPUT); // Direction 6 and most Arduino boards have an LED connected to this pin
@Sammy1Am
Copy link
Owner

Sammy1Am commented Jan 5, 2018

Good catch; it's been resolved in the upcoming Moppy 2.0 code. I'll leave this open in case I come back to cleanup this code, but it'll probably just be superseded once I get 2.0 into a usable state.

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