-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
247 changed files
with
5,814 additions
and
1,963 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
sidebar_label: 'Pico-8SEG-LED-digital tube' | ||
sidebar_position: 25 | ||
--- | ||
|
||
# Use Pico-8SEG-LED digital tube on Duo S | ||
|
||
## Hardware connection | ||
|
||
Pico-8SEG-LED pin diagram: https://www.waveshare.net/wiki/Pico-8SEG-LED#.E6.8E.A5.E5.8F.A3.E8.AF.B4.E6.98.8E | ||
|
||
``` | ||
VSYS —— 3.3V GND —— GND | ||
RCLK —— PIN50 CLK —— PIN23 | ||
DIN —— PIN19 | ||
``` | ||
|
||
## Build the operating environment | ||
|
||
Reference: https://github.com/milkv-duo/duo-examples | ||
|
||
## Compile c | ||
|
||
``` | ||
git clone https://github.com/zwyzwm/Pico-8SEG-LED.git | ||
``` | ||
After downloading and compiling, run the command `scp shu [email protected]:/root/`, copy the generated shu to the login terminal, and run the program. | ||
|
||
## Digital tube counting | ||
|
||
> - 0000-9999 cycle counting | ||
Call the function `LED_8SEG_stopwatch();` in the main function to implement 0000-9999 cycle counting. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
--- | ||
sidebar_label: 'Pico-ePaper-2.13 display' | ||
sidebar_position: 25 | ||
--- | ||
|
||
# Use Pico-ePaper-2.13 display on Duo S | ||
|
||
## Build the operating environment | ||
|
||
Reference:` https://github.com/milkv-duo/duo-examples ` | ||
|
||
## Compile c | ||
|
||
``` | ||
git clone https://github.com/zwyzwm/Pico-ePaper-2.13.git | ||
``` | ||
|
||
After downloading and compiling, run the command ` scp [email protected]:/root/ `, copy the generated paper to the login terminal, and run the program. | ||
|
||
## Display characters | ||
|
||
> - Take the character size of `Font16` as an example: | ||
In the main function, call `Paint_DrawString_EN(5, 10, "HELLO", &Font16, WHITE, BLACK);`, and the character `HELLO` can be displayed vertically. | ||
|
||
## Display black dots | ||
|
||
> - Take the black dot size of 2x2 as an example: | ||
In the main function, call `Paint_DrawPoint(2, 2, BLACK, DOT_PIXEL_2X2, DOT_STYLE_DFT);`, and the black dots can be displayed vertically. | ||
|
||
In the main function, call `Paint_DrawPoint(250,122, BLACK, DOT_PIXEL_2X2, DOT_STYLE_DFT);`, and the black dots can be displayed in the lower right corner. | ||
|
||
## Display the image | ||
|
||
> - Reduce the resolution of the jpg image to 250x122 | ||
Run ` resize_image.py ` to get a jpg image with a resolution of 250x122. | ||
|
||
> - Convert the jpg format to bmp | ||
In the terminal in the same directory, run the command ` covert input.jpg output.bmp ` to get a bmp format image. | ||
|
||
> - Convert the bmp format image to a black and white image | ||
In the terminal in the same directory, run the command ` convert input.bmp -colorspace Gray output.bmp ` to get a black and white image. | ||
|
||
> - Modulo the image to get the modulo array | ||
For reference: ` https://github.com/riuson/lcd-image-converter ` | ||
|
||
Or for simpler images, you can run ` Modulo_array.py ` to get the hexadecimal array and copy the array to the ` ImageData.c ` file | ||
> - Display the image | ||
Call ` Paint_DrawBitMap(your arrays); ` in the main function to display the image. | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
Oops, something went wrong.