adds rotary encoder+SPI based Display: ili9341
This commit is contained in:
parent
dd2a5bf637
commit
a8f8586756
11 changed files with 2184 additions and 269 deletions
24
src/m5stack.py
Executable file
24
src/m5stack.py
Executable file
|
|
@ -0,0 +1,24 @@
|
|||
|
||||
# This file is part of MicroPython M5Stack package
|
||||
# Copyright (c) 2017 Mika Tuupola
|
||||
#
|
||||
# Licensed under the MIT license:
|
||||
# http://www.opensource.org/licenses/mit-license.php
|
||||
#
|
||||
# Project home:
|
||||
# https://github.com/tuupola/micropython-m5stacj
|
||||
|
||||
from micropython import const
|
||||
|
||||
BUTTON_A_PIN = const(39)
|
||||
BUTTON_B_PIN = const(38)
|
||||
BUTTON_C_PIN = const(37)
|
||||
SPEAKER_PIN = const(25)
|
||||
|
||||
TFT_LED_PIN = const(32)
|
||||
TFT_DC_PIN = const(27)
|
||||
TFT_CS_PIN = const(14)
|
||||
TFT_MOSI_PIN = const(23)
|
||||
TFT_CLK_PIN = const(18)
|
||||
TFT_RST_PIN = const(33)
|
||||
TFT_MISO_PIN = const(19)
|
||||
Loading…
Add table
Add a link
Reference in a new issue