Search found 303 matches

by shaoziyang
Wed Mar 11, 2020 1:02 pm
Forum: Hardware Projects
Topic: My pybox project
Replies: 2
Views: 278

Re: My pybox project

I have not calculated the cost carefully yet, because some circuits need to be modified. Now the bom cost is less than $20, and add the shell and production costs, I think it will be less than $40.
by shaoziyang
Tue Mar 10, 2020 3:36 pm
Forum: Hardware Projects
Topic: My pybox project
Replies: 2
Views: 278

My pybox project

I started a new MicroPython project, pybox , which is a utility for embedded engineers, makers and electronic enthusiasts. It integrates multiple functions into a small box, such as programmable DC power, ADC / DAC, I2C / SPI / UART / GPIO, microSD, etc. Pybox uses ESP32 as the microcontroller, and ...
by shaoziyang
Tue Mar 03, 2020 1:38 am
Forum: MicroPython pyboard
Topic: Is it possiable to use hid_mouse and hid_keyboard same time?
Replies: 5
Views: 546

Re: Is it possiable to use hid_mouse and hid_keyboard same time?

Hope micropython can provide a method use hid_mouse and hid_keyboard together.
by shaoziyang
Mon Mar 02, 2020 12:25 pm
Forum: MicroPython pyboard
Topic: Is it possiable to use hid_mouse and hid_keyboard same time?
Replies: 5
Views: 546

Re: Is it possiable to use hid_mouse and hid_keyboard same time?

In circuitpython, it use usb_hid.devices[0] for keyboard, and usb_hid.devices[1] for mouse.
by shaoziyang
Mon Mar 02, 2020 3:29 am
Forum: MicroPython pyboard
Topic: Is it possiable to use hid_mouse and hid_keyboard same time?
Replies: 5
Views: 546

Is it possiable to use hid_mouse and hid_keyboard same time?

Pyboard can work as a use mouse

Code: Select all

pyb.usb_mode('VCP+HID', hid = pyb.hid_mouse)
or a use keyboard

Code: Select all

pyb.usb_mode('VCP+HID', hid = pyb.hid_keyboard)
But is it possiable to use hid_mouse and hid_keyboard same time?
by shaoziyang
Sat Feb 22, 2020 3:12 am
Forum: ESP32 boards
Topic: 16x2 LCD
Replies: 15
Views: 1120

Re: 16x2 LCD

Please note, most I2C LCD1602 module use 5V, but ESP32/STM32 use 3.3V, and I2C will not work in this case.

Fortunately, I2C LCD1602 module may work under 3.3V, but contrast needs to be adjusted with a potentiometer. Or you need a level conversion board for I2C signal.
by shaoziyang
Fri Feb 21, 2020 8:11 am
Forum: ESP32 boards
Topic: 16x2 LCD
Replies: 15
Views: 1120

Re: 16x2 LCD

I have modify the LCD1602 drive, add autoaddress() function add print() function. =https://github.com/micropython-Chinese-Community/mpy-lib/blob/master/lcd/I2C_LCD1602/demo.gif?raw=true https://github.com/micropython-Chinese-Community/mpy-lib/tree/master/lcd/I2C_LCD1602 from machine import I2C, Pin ...
by shaoziyang
Fri Feb 21, 2020 2:07 am
Forum: ESP32 boards
Topic: 16x2 LCD
Replies: 15
Views: 1120

Re: 16x2 LCD

How do you use it?
by shaoziyang
Thu Feb 20, 2020 3:32 pm
Forum: ESP32 boards
Topic: I have design a new small ESP32 board
Replies: 4
Views: 431

Re: I have design a new small ESP32 board

I have share design file in github.

https://github.com/micropython-Chinese- ... ster/ESP32

sch.png
sch.png (181.34 KiB) Viewed 184 times
by shaoziyang
Wed Feb 19, 2020 2:46 pm
Forum: Programs, Libraries and Tools
Topic: Some STM32F7DISC board LCD and TS demo
Replies: 3
Views: 217

Re: Some STM32F7DISC board LCD and TS demo

print import lcdF7D class LCD_F7D(): def __init__(self): self.LCD = lcdF7D self.LCD.init() self.color = 0xFFFFFF self.px, self.py = 0, 0 self.Width, self.Height = 480, 272 self.fontsize(12) return def fontsize(self, size): if size > 20: self.w, self.h =17, 24, elif size > 16: self.w, self.h = 14, 20...