Lesson #1 Propeller Question
LarryCardo
Posts: 28
Using the book "Programming and Customizing the Multicore Propeller Microcontroller", I programmed the first exercise on page 23 and it worked OK (turned led #16 on). Using the Propeller Demo board I purchased in about 2009.
PUB LED_On
dira[16] := 1
dirb[16] := 1
repeat
LED 16 lit up.
Then I mistakenly changed the 1's to 3's.
PUB LED_On
dira[16] := 3
dirb[16] := 3
repeat
Now when ever I run the first program, no leds light up. However, when I press the reset, the leds sequentially flash for a second or 2. But then I loaded the first program into EEPROM and now when I hit reset no leds light?
Did I damage something?
Confused in Lesson 1,
Larry Cardo
PUB LED_On
dira[16] := 1
dirb[16] := 1
repeat
LED 16 lit up.
Then I mistakenly changed the 1's to 3's.
PUB LED_On
dira[16] := 3
dirb[16] := 3
repeat
Now when ever I run the first program, no leds light up. However, when I press the reset, the leds sequentially flash for a second or 2. But then I loaded the first program into EEPROM and now when I hit reset no leds light?
Did I damage something?
Confused in Lesson 1,
Larry Cardo
Comments
PUB LED_On
dira[16] := 1
dirb[16] := 1
repeat
Thanks for your review and explanation.
You solved it. I had a stupid typo. Instead of using "outa[16] : =1, i used dirb[16] := 1.
This is going to be a long trip to AI!
Larry
It is a good lesson, but I have been programming since the mid 60's. Duh!
I am enjoying your "Fill the Big Brain" series. When do you work or sleep?
Larry