Skip to content

Instantly share code, notes, and snippets.

@lol97
Created September 17, 2019 16:05
Show Gist options
  • Select an option

  • Save lol97/916e79bdf4295e633085dbd259e2b9d4 to your computer and use it in GitHub Desktop.

Select an option

Save lol97/916e79bdf4295e633085dbd259e2b9d4 to your computer and use it in GitHub Desktop.
"""
cara membaca data dari serial Monitor arduino
"""
# library / package yang dibutuhkan
import serial
# membuat koneksi
con = serial.Serial("COM6", 9600)
print(con)
print(type(con))
con.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment