It can be a problem with the linux binary? (Not yet able to test,
sorry).

Vasi(funlw65)

On Sep 6, 4:49 am, mattschinkel <[email protected]> wrote:
> Your second example also works fine. With this code I see a countdown
> from 1000 to 1, then I see "---------- It Worked! ----------". Please
> note that I am using serial_software lib (this is my current setup),
> serial_hw should give the same result.
>
> include print
>
> -- setup serial software
> const serial_sw_baudrate = 38400
> alias serial_sw_tx_pin is pin_B4
> alias serial_sw_rx_pin is pin_B5
> pin_B4_direction = output
> pin_B5_direction = input
> include serial_software
> serial_sw_init()
>
> var byte index
> var word table[4] = {0,0,0,0}
> index = 0
> table[index] = 1000
>
> while table[index] != 0 loop
>    _usec_delay(250)
>    print_word_dec(serial_sw_data,table[index])
>    print_crlf(serial_sw_data)
>    table[index] = table[index] - 1
> end loop
>
> print_crlf(serial_sw_data)
> const byte str1[] = "---------- It Worked! ----------"
> print_string(serial_sw_data, str1)
>
> -- end of program
> forever loop
> end loop

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to