View Full Version : Help with Hellebuyck reverse flashing led
firsttimer
- 30th January 2014, 20:50
This is what is in his book but it will not programme
symbol led = b0
pins = %00000000
dirs = %11111111
main:
for led = 0 to 7
high led
pause 1000
low led
pause 1000
low led
next
then the same only reversed
goto main
end
also
I have seached two books but I cant find what dirs means
Demon
- 31st January 2014, 03:36
What PIC are you using? What PBP and assembler versions? What CONFIGs are you using?
Robert
Sherbrook
- 31st January 2014, 17:47
Looks like it's written for the PICAXE to me
Archangel
- 31st January 2014, 18:48
This is what is in his book but it will not programme
symbol led = b0
pins = %00000000
dirs = %11111111
main:
for led = 0 to 7
high led
pause 1000
low led
pause 1000
low led
next
then the same only reversed
goto main
end
also
I have seached two books but I cant find what dirs means
Go check out Parralax basic stamp for dirs, they use it, ME Labs PBP does not.
Use instead TRIS and flip all the bits from what dirs says.
edit:
Ok looking at Chuck's book it appears that PBC does indeed use dirs, I have never used PBC and I do not believe it is still available, but might be wrong in that belief. If you and I have the same book then this is Project 1 and the chip is a 16F876.
Go to the next page and use the P Basic Pro code listed, it should work.
firsttimer
- 2nd February 2014, 20:25
Thanks the next page version worked ok.
Powered by vBulletin® Version 4.1.7 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.