Search found 3 matches
- Thu Dec 11, 2008 12:38 am
- Forum: Compiler
- Topic: USART.DataAvailableTimeout usage
- Replies: 0
- Views: 2615
USART.DataAvailableTimeout usage
hello, i just trying to get it work Include "USART.bas" dim byteok as boolean, j as byte, terminator as string terminator = #13 + #10 USART.SetBaudrate(br1200) While true byteok = USART.DataAvailableTimeout(500) If byteok Then j=USART.Readbyte // pop data USART.Write("Data available",terminator) byt...
- Wed Dec 10, 2008 3:35 pm
- Forum: Compiler
- Topic: Accessing Structure.values (bad typecast)
- Replies: 2
- Views: 2137
- Tue Dec 09, 2008 11:33 pm
- Forum: Compiler
- Topic: Accessing Structure.values (bad typecast)
- Replies: 2
- Views: 2137
Accessing Structure.values (bad typecast)
I have made my struct using: Structure Spink ssyncro As Byte sdata1 As Word sword1 As Word End Structure adding some random values; Spink.ssyncro = 255 Spink.sdata1 = 400 Spink.ssword1 = 2500 but when i try to do . . . Sub Put_data() USART.Write(Spink.ssyncro,Spink.sdata1.byte1,Spink.sword1.byte1, 1...