Re: Hi I have a problem with serial port in win xp.

new topic     » goto parent     » topic index » view thread      » older message » newer message
nap51d said...

Is there a way to write to the port without to much mess. Is there an example that I can see or learn from I m not that good programmer end euphoria is the only code that I know So I need something the stays in euphoria end not C or something else

atom fh 
  fh = open("com1","wb")-- open serial port COM1 
  puts(fh,"hello world\n") -- write to serial port COM1 
  -- it is opened as binary so you can send binary data too. 
  puts(fh,{1,3,3,4,3}) 
  close(fh)  
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu