-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtips.txt
54 lines (43 loc) · 1.03 KB
/
tips.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# via Serial:
import network
wlan = network.WLAN(network.STA_IF)
wlan.active(True)
wlan.connect('FRITZ!HH','47114711')
import webrepl
webrepl.start()
dann
# show files:
import os
os.listdir()
os.remove('mydu1.py')
# UART
from machine import UART
uart = UART(1, 38400) # 0 or 1
uart.init(baudrate=38400, bits=8, parity=None, stop=1)
UART.deinit()¶
# I2C
import machine
from machine import I2C
pinSDA=machine.Pin(4) #green
pinSCL=machine.Pin(5) #yell
c=I2C(scl=pinSCL, sda=pinSDA)
c.writeto_mem(39,0,b'\0')
c.readfrom_mem(39, 9, 1)
#MPU6050
from mpu6050 import MPU6050
imu = MPU6050(2,False)
#Anschluss
RST pink TXD green
ADC RXD yell
EN SCL yell
IO16 SDA grn
IO14 IO00 ws
IO12 IO16
IO13
VCC
#setup go to pogramming Mode hold grey, press pink, release pink, release grey
python -m esptool --port com3 erase_flash
python -m esptool --port com3 --baud 460800 write_flash --flash_size=detect 0 ESP8266_GENERIC-20241129-v1.24.1.bin
after Reset:
ampy --port COM3 put boot.py boot.py
ampy --port COM3 put webrepl_cfg.py webrepl_cfg.py