You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 1, 2022. It is now read-only.
jputcu edited this page Apr 10, 2011
·
4 revisions
This library has been used on Linux and Windows.
Reset Arduino
The reset of Arduino is attached to the DTR, Data Terminal Ready line.
By toggling this line, the processor will reset.
importSystem.Hardware.SerialportimportControl.Concurrent (threadDelay)
main::IO()
main =do
s <- openSerial "/dev/ttyUSB0" defaultSerialSettings -- for POSIX-- s <- openSerial "COM7" defaultSerialSettings -- for Windows
setDTR s False
threadDelay 500000
setDTR s True
closeSerial s