Author Topic: Arduino Counter Bug  (Read 2170 times)

0 Members and 1 Guest are viewing this topic.

Offline Electro FanTopic starter

  • Super Contributor
  • ***
  • Posts: 3197
Arduino Counter Bug
« on: January 03, 2016, 06:03:30 am »
Just checking to see if anyone might be up for helping to debug an issue with this sketch:

http://www.14core.com/working-on-shift-register-on-8-bit-binary-counter/

it gives this error:
exit status 1
'data' was not declared in this scope

Thx
 

Offline f1rmb

  • Regular Contributor
  • *
  • Posts: 180
  • Country: fr
Re: Arduino Counter Bug
« Reply #1 on: January 03, 2016, 06:27:43 am »
Just checking to see if anyone might be up for helping to debug an issue with this sketch:

http://www.14core.com/working-on-shift-register-on-8-bit-binary-counter/

it gives this error:
exit status 1
'data' was not declared in this scope

Thx
Just comment "sending data; //..." line. Datatype isn't declared anywhere, data variable never used.

Cheers.
« Last Edit: January 03, 2016, 08:30:54 am by f1rmb »
 

Offline adam1213

  • Regular Contributor
  • *
  • Posts: 120
  • Country: au
Re: Arduino Counter Bug
« Reply #2 on: January 03, 2016, 07:09:57 am »
The other syntax issue with the code is on line 41 "error: lvalue required as left operand of assignment" - there is a stray "!"

  else {!
  pinState = LOW;
 

Offline Electro FanTopic starter

  • Super Contributor
  • ***
  • Posts: 3197
Re: Arduino Counter Bug
« Reply #3 on: January 03, 2016, 10:47:28 am »
Thanks for the help - I think I've got it sorted out now.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf