-
Notifications
You must be signed in to change notification settings - Fork 73
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
bitlash demo - blink does not blink #59
Comments
I found that when I just define the fucntion: |
I found the reason: |
A better way is to use gobal variable a-z to make switch. aStr = 'a=0;'; |
I also found that when run blink in background, the LED intensity was not stable at high frequency,. aStr = 'i=0; while(i<1000){toggle7();i++}'; |
On some Arduino boards, for example the Due, the Arduino digitalRead() function does not properly read back state values written to pins configured as output pins. This works correctly on the original ‘328 Arduino.
Is it possible you are using a board other than a standard ‘328 Arduino?
…-br
On Feb 24, 2019, at 1:57 AM, rmd06 ***@***.***> wrote:
I found the reason:
The dr function or d7 always return 0 no matter the voltage is high or low.
perhaps before reading d7, the pinmode was converted to input, and the power was shutoff on d7, so the read value was always 0.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#59 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAF-xlCcQSoVnEOl09mzlelrqT3ZNYfxks5vQlQSgaJpZM4bOAjb>.
|
Hi, I followed the tutorial and run a blink startup function to make LED connected to D7 pin blink.
After I run startup, I found that the LED was always on, and no blink.
Then I run a command to modify the callee toggle7 to see if something changed:
function toggle7 {d7=0;} // I founs that LED was suddenly off
function toggle7 {d7=1;}// I founs that LED was suddenly on
function toggle7 {d7=!d7;} // I expect LEDto blink, but it failed.
The text was updated successfully, but these errors were encountered: