mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-22 08:05:49 +08:00
added license to nextion.py
This commit is contained in:
@@ -1,10 +1,28 @@
|
|||||||
|
'''
|
||||||
|
* Copyright (C) 2016 Alex Koren
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
'''
|
||||||
|
|
||||||
import serial
|
import serial
|
||||||
import time
|
import time
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
|
||||||
e = "\xff\xff\xff"
|
e = "\xff\xff\xff"
|
||||||
deviceName = '/dev/ttyUSB0' #MAKE SURE THIS IS THE CORRECT DEVICE
|
deviceName = '/dev/tty.usbserial-AK05BVRH' #MAKE SURE THIS IS THE CORRECT DEVICE
|
||||||
CHECK_MODEL = 'NX3224T024'
|
CHECK_MODEL = 'NX3224T024'
|
||||||
|
|
||||||
def getBaudrate(ser, fSize=None):
|
def getBaudrate(ser, fSize=None):
|
||||||
|
|||||||
Reference in New Issue
Block a user