Initial commit
This commit is contained in:
Generated
+8
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="PYTHON_MODULE" version="4">
|
||||||
|
<component name="NewModuleRootManager">
|
||||||
|
<content url="file://$MODULE_DIR$" />
|
||||||
|
<orderEntry type="inheritedJdk" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
</component>
|
||||||
|
</module>
|
||||||
+15
@@ -0,0 +1,15 @@
|
|||||||
|
<component name="InspectionProjectProfileManager">
|
||||||
|
<profile version="1.0">
|
||||||
|
<option name="myName" value="Project Default" />
|
||||||
|
<inspection_tool class="PyPackageRequirementsInspection" enabled="true" level="WARNING" enabled_by_default="true">
|
||||||
|
<option name="ignoredPackages">
|
||||||
|
<value>
|
||||||
|
<list size="2">
|
||||||
|
<item index="0" class="java.lang.String" itemvalue="neopixel" />
|
||||||
|
<item index="1" class="java.lang.String" itemvalue="adafruit_circuitpython_macropad" />
|
||||||
|
</list>
|
||||||
|
</value>
|
||||||
|
</option>
|
||||||
|
</inspection_tool>
|
||||||
|
</profile>
|
||||||
|
</component>
|
||||||
+6
@@ -0,0 +1,6 @@
|
|||||||
|
<component name="InspectionProjectProfileManager">
|
||||||
|
<settings>
|
||||||
|
<option name="USE_PROJECT_PROFILE" value="false" />
|
||||||
|
<version value="1.0" />
|
||||||
|
</settings>
|
||||||
|
</component>
|
||||||
Generated
+8
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/MacroPadApp.iml" filepath="$PROJECT_DIR$/.idea/MacroPadApp.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
from serial import Serial
|
||||||
|
import serial.tools.list_ports as port_list
|
||||||
|
|
||||||
|
ports = list(port_list.comports())
|
||||||
|
|
||||||
|
#Windows code for figuring out which port to grab
|
||||||
|
|
||||||
|
for port in ports:
|
||||||
|
if "DF60BCA" in port.hwid and port.pid == 33032:
|
||||||
|
print("FOUND MACROPAD!")
|
||||||
|
ser = Serial(port.name)
|
||||||
|
ser.write(b"hello!\n")
|
||||||
|
line = ser.readline()
|
||||||
|
print(line)
|
||||||
|
print(line.decode("utf-8"))
|
||||||
|
line = ser.readline()
|
||||||
|
print(line)
|
||||||
|
print(line.decode("utf-8"))
|
||||||
|
line = ser.readline()
|
||||||
|
print(line)
|
||||||
|
print(line.decode("utf-8"))
|
||||||
|
line = ser.readline()
|
||||||
|
print(line)
|
||||||
|
print(line.decode("utf-8"))
|
||||||
|
|
||||||
|
ser.close()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user