Re: euphoria to arduino

new topic     » goto parent     » topic index » view thread      » older message » newer message

Thanks again Arthur, it worked, also changed lpWBbuf to object

----------------------- sio_write ----------------------- 
global function sio_write(integer port, object lpWBuf, integer len) 
		--return c_func(sio_write_,{port, lpWBuf, len}) 
		return c_func(sio_write_,{port,allocate_string(lpWBuf),8})  
end function 

I can now send a string of 8 bits to turn on or off 8 LED's, which will be transistors eventually.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu