Simpleexample if i want to have it in the binary form
00001 'high on pin1
11010 'high on pin 1,3 and 4
PORTB = $01
PORTB = $1A
Happy Easter
Jerson
Simpleexample if i want to have it in the binary form
00001 'high on pin1
11010 'high on pin 1,3 and 4
PORTB = $01
PORTB = $1A
Happy Easter
Jerson
portb=31 ' or portb=%00011111
pause 500
portb=0 ' or portb=%00000000
pause 500
portb=1 ' or portb=%00000001
portb=26 ' or portb=%00011010
Paul Borgmeier
Salt Lake City, UT
USA
__________________
Are you running PicBasic Pro or BicBasic Compiler?
Paul Borgmeier
Salt Lake City, UT
USA
__________________
ADD
to the top of the examples posted by Jerson and me.Code:TRISB=0 ' make all of PORTB = OUTPUTS
HIGH AND LOW make the pins an output for you - setting them with PORTB = 1 (for example), you have to make them outputs first since they default to inputs on power up.
Paul Borgmeier
Salt Lake City, UT
USA
__________________
Thanks bro,
For the help and a quick reply..
This was a great forum to learn Pic with the user here.
Greetings from Singapore.
Happy Easter!!!
Bookmarks