The Raspberry Pi Thread [6]


  1. Posts : 15,077
    Windows 10 IoT
    Thread Starter
       #731

    I had to do some trickery to run the two displays. The Pico only has 256 Kbytes of Ram. The display buffer uses
    display_buffer = bytearray(width * height * 2) # 2-bytes per pixel (RGB565)
    That's 320 x 240 x 2 = 153,600 bytes for the Display pack 2. There isn't enough space for a display buffer for each display. To get around that I write to it for display 1, update the display, then erase it. Then write to it for display 2, update display 2, then erase it. Wash rinse and repeat. Took a bit of head scratching to figure it out let me tell you.
      My Computer


  2. Posts : 5,719
    insider build 10586.3 win10 pro 64
       #732

    Amazing ,great job..
    alphanumeric said:
    I had to do some trickery to run the two displays. The Pico only has 256 Kbytes of Ram. The display buffer uses
    display_buffer = bytearray(width * height * 2) # 2-bytes per pixel (RGB565)
    That's 320 x 240 x 2 = 153,600 bytes for the Display pack 2. There isn't enough space for a display buffer for each display. To get around that I write to it for display 1, update the display, then erase it. Then write to it for display 2, update display 2, then erase it. Wash rinse and repeat. Took a bit of head scratching to figure it out let me tell you.
      My Computer


  3. Posts : 5,719
    insider build 10586.3 win10 pro 64
       #733

    I just watched the utube video to use the vga board to play games ,no way I could follow all that just too play Games , If your interested you can have the VGA Board ,to give it a try :) ,,,,, How To get a BBC Model B Emulator running on a Raspberry Pi Pico - Full Tutorial - YouTube
      My Computer


  4. Posts : 15,077
    Windows 10 IoT
    Thread Starter
       #734

    I'll pass for now, might borrow it this summer to play with though. Working on my weather station at the moment. Just finished adding the code for the light sensor.
    So far its
    1.54 240x240 SPI LCD
    Pico Display Pack V2 320x240 SPI LCD
    BME280 - indoor temp + min and max, and indoor humidity.
    BME680 - outdoor temp + min and max, outdoor humidity, and barometric pressure.
    LTR-559 for Sunlight
    RV3028 for date and time.

    UV sensor is next, probably not today though, need to take a break.
      My Computer


  5. Posts : 5,719
    insider build 10586.3 win10 pro 64
       #735

    yup anytime , I cant even remember simple bits of code or commands to make a phat or hat work, ,I have to look it up ... not sure if I ever knew the simple commands,LOL going through my cabnit I believe I bought so many Cables and wires and Power supplies ,ect ect ect , Looks like I was a Shop-A-Holic ,and might still be ,LOL
    alphanumeric said:
    I'll pass for now, might borrow it this summer to play with though. .
      My Computer


  6. Posts : 15,077
    Windows 10 IoT
    Thread Starter
       #736

    Yet another one step forward two steps back.
    My veml6075 UV sensor is discontinued. The Pimoroni Python library is still there on git hub but there isn't any Micro Python Library. I found one on the internet and it works. Problem is it uses the Pico's machine i2c library. I haven't been able to get it to work with the Pimoroni i2c setup. And I haven't been able to get my main file to use machine i2c.

    I'm pretty sure (but not 100% sure) I had this working with multiple breakouts. I lost that file though last time I redid my Pi400. Must have forgotten to back it up to my Pi Stuff thumb drive?
      My Computer


  7. Posts : 5,719
    insider build 10586.3 win10 pro 64
       #737

    that sucks , I have a hard time remember THINGS period lately.Bacically I have given up trying to get old phats to run on a pi4. only got 1 fully working pi3b, and the A+ are useless almost with only one usb slot ,lol I get frustrated trying and just give up, and try againg in a day or two . will just use the pizero i guess
    alphanumeric said:
    Yet another one step forward two steps back.
    My veml6075 UV sensor is discontinued. The Pimoroni Python library is still there on git hub but there isn't any Micro Python Library. I found one on the internet and it works. Problem is it uses the Pico's machine i2c library. I haven't been able to get it to work with the Pimoroni i2c setup. And I haven't been able to get my main file to use machine i2c.

    I'm pretty sure (but not 100% sure) I had this working with multiple breakouts. I lost that file though last time I redid my Pi400. Must have forgotten to back it up to my Pi Stuff thumb drive?
      My Computer


  8. Posts : 15,077
    Windows 10 IoT
    Thread Starter
       #738

    I like the A series for headless setups where a Zero doesn't have the grunt to do the job. Several of my Pi Camera setups are 3A+'s. Almost as powerful as a 3B but cheaper cost wise. I'm really hoping a 4A happens. I do believe February 28th is an anniversary date, 10 years since the first Pi was released. Something cool might show up then?
      My Computer


  9. Posts : 5,719
    insider build 10586.3 win10 pro 64
       #739

    yea, useless was a bit harsh[lol] I think it my way of using it thats the issue ,loI .I need to spend more time learning to install hats and pahats the proper way ! thinking it might be to late for that .[ I might have to change ky username "Caperjack" to ,To-late-Jack
    alphanumeric said:
    I like the A series for headless setups where a Zero doesn't have the grunt to do the job. Several of my Pi Camera setups are 3A+'s. Almost as powerful as a 3B but cheaper cost wise. I'm really hoping a 4A happens. I do believe February 28th is an anniversary date, 10 years since the first Pi was released. Something cool might show up then?
      My Computer


  10. Posts : 5,719
    insider build 10586.3 win10 pro 64
       #740

    some good stuff/info here, maybe !
    I'm going to dig-in and read all this , see you in 5 yrs
    Low Power Weather Station Datalogger using ESP8266 | Random Nerd Tutorials

    edit-- maybe not just noticed there is no Pico or Pi stuff LOL
    Last edited by caperjack; 21 Feb 2022 at 15:19.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 09:48.
Find Us




Windows 10 Forums