Update(boards): xpython板卡执行 build:prod
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
82
boards/default/micropython_esp32c2/build/lib/map.json
Normal file
82
boards/default/micropython_esp32c2/build/lib/map.json
Normal file
@@ -0,0 +1,82 @@
|
||||
{
|
||||
"ble_central": {
|
||||
"__require__": [
|
||||
"time",
|
||||
"gc",
|
||||
"bluetooth",
|
||||
"micropython",
|
||||
"ubinascii",
|
||||
"ble_advertising"
|
||||
],
|
||||
"__file__": true,
|
||||
"__size__": 7378,
|
||||
"__name__": "ble_central.py"
|
||||
},
|
||||
"mini_bot": {
|
||||
"__require__": [
|
||||
"time",
|
||||
"math",
|
||||
"esp",
|
||||
"micropython",
|
||||
"framebuf"
|
||||
],
|
||||
"__file__": true,
|
||||
"__size__": 12696,
|
||||
"__name__": "mini_bot.py"
|
||||
},
|
||||
"mini_g2": {
|
||||
"__require__": [
|
||||
"gc",
|
||||
"machine",
|
||||
"rc522"
|
||||
],
|
||||
"__file__": true,
|
||||
"__size__": 544,
|
||||
"__name__": "mini_g2.py"
|
||||
},
|
||||
"mini_go": {
|
||||
"__require__": [
|
||||
"time",
|
||||
"gc",
|
||||
"math",
|
||||
"tm1931",
|
||||
"machine"
|
||||
],
|
||||
"__file__": true,
|
||||
"__size__": 8481,
|
||||
"__name__": "mini_go.py"
|
||||
},
|
||||
"mixgo_mini": {
|
||||
"__require__": [
|
||||
"time",
|
||||
"gc",
|
||||
"esp32",
|
||||
"machine",
|
||||
"ws2812x",
|
||||
"musicx",
|
||||
"sc7a20",
|
||||
"ap3216c",
|
||||
"mini_bot"
|
||||
],
|
||||
"__file__": true,
|
||||
"__size__": 4611,
|
||||
"__name__": "mixgo_mini.py"
|
||||
},
|
||||
"musicx": {
|
||||
"__require__": [
|
||||
"time"
|
||||
],
|
||||
"__file__": true,
|
||||
"__size__": 3545,
|
||||
"__name__": "musicx.py"
|
||||
},
|
||||
"ws2812x": {
|
||||
"__require__": [
|
||||
"time",
|
||||
"machine"
|
||||
],
|
||||
"__file__": true,
|
||||
"__size__": 1881,
|
||||
"__name__": "ws2812x.py"
|
||||
}
|
||||
}
|
||||
@@ -21,6 +21,7 @@ _BOT035_PGA = const(0x20)
|
||||
_BOT035_KB = const(0x1C)
|
||||
_BOT035_MS = const(0x20)
|
||||
_BOT035_STR = const(0x24)
|
||||
_BOT035_STA = const(0x25)
|
||||
_FONT_W = const(5)
|
||||
_FONT_H = const(8)
|
||||
_LEDS_W = const(12)
|
||||
@@ -316,6 +317,10 @@ class BOT035(FrameBuffer):
|
||||
else:
|
||||
print("Warning: Please upgrade the coprocessor firmware to use this feature")
|
||||
|
||||
def hid_keyboard_state(self):
|
||||
state = self._rreg(_BOT035_STA)
|
||||
return bool(state & 0x10), bool(state & 0x20), bool(state & 0x40)
|
||||
|
||||
def hid_mouse(self, keys=0, move=(0, 0), wheel=0, release=True):
|
||||
if self._version:
|
||||
self._i2c.writeto_mem(_BOT035_ADDRESS, _BOT035_MS, bytes([keys & 0x0F, move[0] & 0xFF, move[1] & 0xFF, wheel & 0xFF]))
|
||||
|
||||
Reference in New Issue
Block a user