

StatusBarText(0, 1, 'Rx: 0', #PB_StatusBar_Center) StatusBarText(0, 0, 'disconnected', #PB_StatusBar_Center) WriteSerialPortString(Port, *ParameterTx$, #PB_Ascii)ĭefine ComParameter.ComParameterStructure PostEvent(#Com_Event_RxBytes, 0, 0, 0, RxBytes) Port = OpenSerialPort(#PB_Any, *ParameterCOM$, 1200, #PB_SerialPort_NoParity, 8, 1, #PB_SerialPort_NoHandshake, 128, 128) Procedure ComThread(*Parameter.ComParameterStructure) MessageRequester('Info', 'Enable Thread-Safe in compiler options!') Last edited by infratec on Sat 10:54 pm, edited 1 time in total.
#Purebasic integer serial#
OpenSerialPort(0,'COM9',1200,#PB_SerialPort_NoParity,8,1,#PB_SerialPort_NoHandshake,1024,16)īut if you do something with more data, you'll need an own thread for the serial stuff. Print viewĪddGadgetItem(0, -1, RSet(Hex(Byte, #PB_Byte), 2, '0') + #LF$ + Str(Byte) + #LF$ + Chr(Byte))ĭefine flags = #PB_Window_ScreenCentered|#PB_Window_SystemMenu|#PB_Window_MinimizeGadget|#PB_Window_MaximizeGadget|#PB_Window_SizeGadget
#Purebasic integer full#
This library offers full access to the serial ports available on the. The process of computer driven hardware prototype creation is simplified when the serial port is used. The Serial port (also know as the RS-232 port) was first created in 1969, and despite its age, it is still widely used in the industry. I have 3 questions: may I use the serial port (COM1/COM2) with PureBasic (using some lib/functions or Windows-API)? Is the.dll support, working fine? I saw PureBasic has inner functions to call Direct-X, in your opinion is faster than BlitzBasic or not? Thank you in advance for informations.

Need the additionally XM2MXM Tool (76 KB) for converting the XM modules into the MXM format.

Include the very small MXM-Music-Module Player in PureBasic. For a compatible Linux version see the userlib 'Serial'. Sending and receiving of data through the serial port.
