Тёмный

Tutorial on the Pimoroni Pico Display -Part 1 

Making Stuff with Chris DeHut
Подписаться 10 тыс.
Просмотров 4,4 тыс.
50% 1

Emphasis is on: drawing graphic primitives, buttons, RBG LED, and display text. This tutorial will take you step by step many of the capabilities capabilities of the Pimoroni PICO Display. If you are looking for a good display for your PICO projects, be sure to watch this video so that you get a good understanding of the excellent capabilities in this little device!
SEE ASSOCIATED VIDEOS:
Raspberry Pi PICO Setup and Preparation for Programming • Raspberry Pi PICO Setu...
VISIT OUR COMPANION WEBSITE -- makingstuffwit...
DOWNLOAD FILES HERE -- makingstuffwit...

Опубликовано:

 

14 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 27   
@jeffro.
@jeffro. 22 дня назад
Nice job getting me started with graphics on the Pico! Well explained. It'll be at least a week before I actually get to programming, but now I know the steps involved, so thanks a big bunch o' somethin'. (Whatever ya like!) 'scribed! 👍👍 I'll be watching for more!
@MakingStuffwithChrisDeHut
@MakingStuffwithChrisDeHut 22 дня назад
Good morning jeffro, Glad I could help and thanks for the kind words, much appreciated. Have fun with your project and keep us updated on the progress. Cheers! Chris
@monolocoss8891
@monolocoss8891 Год назад
a couple of months ago i had to learn all this things through trial and error, it's great to see a video explaining the functions, i will make sure to see this video again any time i need to use the screen again
@MakingStuffwithChrisDeHut
@MakingStuffwithChrisDeHut Год назад
Isn't "fun" have to go through the trial and error process like that. Thanks for sharing your input, much appreciated! Cheers! Chris
@peterwest1158
@peterwest1158 8 месяцев назад
Just bought a Pimoroni Display Pack 2 so your tutorial was very useful to cover the library functions. Great little display.
@MakingStuffwithChrisDeHut
@MakingStuffwithChrisDeHut 8 месяцев назад
Glad you found it helpful! I agree, they are great. Cheers! Chris
@peterwest1158
@peterwest1158 4 месяца назад
I wonder if you know which GPIO pins the Display Pack uses as I have had issues with unexpected crashes of the Pico when trying to use with the HC-SR04 Sonar Distance Measure example you had on your website. The pico would sometimes run for a few readings then freeze and would need power to be cycled before it would respond. Running on another Pico on a matrix board it worked perfectly. I am guessing that there is an interaction between the Display Pack GPIO and the interface to the HC-SR04. Cheers Peter
@ulnessd
@ulnessd Год назад
Thank you, Chris, for producing such high quality content. I think I've watched all of your pico series videos. I noticed that you held up your production time sychronization device. It appeared to have a nice robust casing. I'm planning to build a few devices for some in-class actvities for my students. This display seems great for that. Can you kindly tell me what case you use and whether or not you think it will stand up to alot of use, passing around, dropping, etc. -best regards, Darin
@MakingStuffwithChrisDeHut
@MakingStuffwithChrisDeHut Год назад
Hello Darin, Thank you for the kind words and for joining the community, very much appreciated! The case is pretty tough and it just something I designed and 3D printed. It does seem to be holding up pretty good. Unfortunately, I didn't design it with internal power but it does do the job. Let me know if you want the Step/Stl files and if I have them I can post them on the website. Cheers! Chris
@ulnessd
@ulnessd Год назад
@@MakingStuffwithChrisDeHut Hi Chris, if it's convenient for you, I'd love the STL files.
@MakingStuffwithChrisDeHut
@MakingStuffwithChrisDeHut Год назад
Hi Darin, it should be on this page - near the bottom.... makingstuffwithchrisdehut.com/electronics-files Cheers! Chris
@ulnessd
@ulnessd Год назад
@@MakingStuffwithChrisDeHut Got it. Thanks!
@NukeFinity
@NukeFinity 9 месяцев назад
Vielen Dank für diese Ausführliche Anleitung. Hat mir doch sehr geholfen :)
@MakingStuffwithChrisDeHut
@MakingStuffwithChrisDeHut 9 месяцев назад
You are very welcome! Cheers! Chris
@nick-qw2zh
@nick-qw2zh Год назад
Thanks Chris for a great in depth tutorial. I’m trying to output to the pico onboard led and then eventually to other gpio at the same time the button is pressed but I’m not having only luck. Do you have a tutorial on this sort of thing Nick
@mytechnotalent
@mytechnotalent Год назад
great job Chris!
@MakingStuffwithChrisDeHut
@MakingStuffwithChrisDeHut Год назад
Thank you Kevin, much appreciated!!! Cheers! Chris
@ADHDiY
@ADHDiY Год назад
Just a quick issue on you code. For the animation you use: display.text("STOP!!", 150,60, angle = 20) but you show that it is flat. If I use that code with any of the vector fonts it does not show all of the word. If I just change it to: display.text("STOP!!", 150,60) It will work as you show.
@MakingStuffwithChrisDeHut
@MakingStuffwithChrisDeHut Год назад
Wow, thanks for the additional information! Cheers! Chris
@TOMTOM-nh3nl
@TOMTOM-nh3nl Год назад
Thank You
@MakingStuffwithChrisDeHut
@MakingStuffwithChrisDeHut Год назад
You are very welcome good sir! Cheers! Chris
@nick-qw2zh
@nick-qw2zh Год назад
Hi Chris ,here is my modified code from machine import Pin, Timer import time import utime from pimoroni import Button from picographics import PicoGraphics, DISPLAY_PICO_DISPLAY_2, PEN_P4 from pimoroni import RGBLED led1_Pin =Pin(25,Pin.OUT) #output to onboard led hopefully # We're only using a few colours so we can use a 4 bit/16 colour palette and save RAM! display = PicoGraphics(display=DISPLAY_PICO_DISPLAY_2, pen_type=PEN_P4, rotate=0) display.set_backlight(0.5) display.set_font("bitmap8") led = RGBLED(6,7,8) led1_Pin = Pin(25,Pin.OUT) #onboard led timer = Timer() def blink(timer): led1.toggle() button_a = Button(12) button_b = Button(13) button_x = Button(14) button_y = Button(15) WHITE = display.create_pen(255, 255, 255) BLACK = display.create_pen(0, 0, 0) CYAN = display.create_pen(0, 255, 255) MAGENTA = display.create_pen(255, 0, 255) YELLOW = display.create_pen(255, 255, 0) GREEN = display.create_pen(0, 255, 0) # sets up a handy function we can call to clear the screen def clear(): display.set_pen(BLACK) display.clear() display.update() # set up clear() while True: if button_a.read(): # if a button press is detected then... clear() # clear to black display.set_pen(WHITE) # change the pen colour display.text("Button A pressed", 10, 10, 240, 4) # display some text on the screen display.update() # update the display led.set_rgb(255,255,255) led1_Pin.value(1) # onboard led led1_Pin.toggle() # onboard led time.sleep(1) # pause for a sec clear() # clear to black again elif button_b.read(): clear() display.set_pen(CYAN) display.text("Button B pressed", 10, 10, 240, 4) display.update() led.set_rgb(0,255,255) time.sleep(1) clear() elif button_x.read(): clear() display.set_pen(MAGENTA) display.text("Button X pressed", 10, 10, 240, 4) display.update() led.set_rgb(255,0,255) time.sleep(1) clear() elif button_y.read(): clear() display.set_pen(YELLOW) display.text("Button Y pressed", 10, 10, 240, 4) display.update() led.set_rgb(255,255,0) time.sleep(1) clear() else: display.set_pen(GREEN) display.text("Press any button!", 10, 10, 240, 4) display.update() led.set_rgb(0,255,0) time.sleep(0.1) # this number is how frequently the Pico checks for button presses Cheers Nick
@MakingStuffwithChrisDeHut
@MakingStuffwithChrisDeHut Год назад
Hi nick, Unfortunately I am not sure what you are needing. Can you add comments in the program of what you are wanting to do, what you tried, and the result you got? Thanks, Chris
@nick-qw2zh
@nick-qw2zh Год назад
@@MakingStuffwithChrisDeHut Hi Chris, thank you for getting back to me. My aim is that when button A is pressed, it will automatically send a Pulse to The on board led on the raspberry pi pico, and I’m using a pico W. I therefore realise that the code is slightly different for a pico W as opposed to a standard pico, but I cannot call the on-board led simply LED. I have to call it, LED1 or something similar to differentiate between the RGB led and the on-board led. I hope this helps. If not, I will enumerate in the code.
@MakingStuffwithChrisDeHut
@MakingStuffwithChrisDeHut Год назад
@@nick-qw2zh HI again, I think I understand - (unfortunately RU-vid comments get messed up at times making it a problem to piece things together). I think you code looked okay but you are using PIN 25. Here is an example to toggle the on board LED for 1 second. from machine import Pin led = Pin("LED", Pin.OUT) led.on() sleep(1) led.off() Cheers! Chris
@nick-qw2zh
@nick-qw2zh Год назад
@@MakingStuffwithChrisDeHut thanks Chris I’ll give it a go
Далее
Add more than 100 GPIO pins to your PICO!!!!
24:49
Просмотров 10 тыс.
Part 5. Roblox trend☠️
00:13
Просмотров 2,7 млн
Raspberry Pi Pico W: Wireless Weather Station
17:13
Просмотров 291 тыс.
Run BOTH Cores with Threading On The PICO
33:28
Просмотров 7 тыс.
Learn MicroPython - Part 1 Controlling the flow
22:35
How to Draw Graphics with MicroPython, and PicoGraphics
1:16:14