Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 17:26 09 May 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Does this look right ?

Author Message
hitsware
Guru

Joined: 23/11/2012
Location: United States
Posts: 535
Posted: 01:31pm 17 Jul 2013
Copy link to clipboard 
Print this post

10 open "com2:19200" as #1
20 print #1, 0
30 pause 3
40 goto 20

CGColorMaximite (similar on DuinoMite Mega)

The long highs are the pause time.
Shouldn't the rest be mostly just low ?

 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 5916
Posted: 01:48pm 17 Jul 2013
Copy link to clipboard 
Print this post

Remember that you are sending asc("0") followed by CRLF

That's in decimal 48,13,10
And probably a leading space as well

Jim
VK7JH
MMedit   MMBasic Help
 
hitsware
Guru

Joined: 23/11/2012
Location: United States
Posts: 535
Posted: 04:55am 18 Jul 2013
Copy link to clipboard 
Print this post

Geez .........
It's supposed to be the number "0" as in zero ( 8 low bits )
Maybe I have a complete misunderstanding somewheres ?
 
Dylan
Regular Member

Joined: 17/06/2013
Location: Netherlands
Posts: 81
Posted: 07:20am 18 Jul 2013
Copy link to clipboard 
Print this post

You probably want CHR$(0) then.
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3674
Posted: 07:29am 18 Jul 2013
Copy link to clipboard 
Print this post

Try

... print #1, chr$(0);

Note the semi-colon as well (to suppress the CRLF)

JohnEdited by JohnS 2013-07-19
 
hitsware
Guru

Joined: 23/11/2012
Location: United States
Posts: 535
Posted: 10:17am 18 Jul 2013
Copy link to clipboard 
Print this post

Thanks Guys ! ..... :)
That does it .
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024