Search found 36 matches

by Poi
Mon Jul 08, 2019 10:29 pm
Forum: Discussion
Topic: Tearing when drawing rectangles
Replies: 6
Views: 450

Re: Tearing when drawing rectangles

I did a quick test making copies of the FramebufferDeviceFillRect and FramebufferDevicePutRect so they would accept external offset values instead of using the offsets of the framebuffer device and it works well :) I'll have to clean up the solution a bit, but it looks very promising. I think this w...
by Poi
Mon Jul 08, 2019 5:46 pm
Forum: Discussion
Topic: Tearing when drawing rectangles
Replies: 6
Views: 450

Re: Tearing when drawing rectangles

I came across retromachine while searching on this topic :) But does it mean I need to implement my own drawing methods? From what I understand FramebufferDeviceFillRect and the other similar methods don't allow you to draw to the memory which is not visible, they check the current offset to make su...
by Poi
Sun Jul 07, 2019 11:54 pm
Forum: Discussion
Topic: Tearing when drawing rectangles
Replies: 6
Views: 450

Tearing when drawing rectangles

Some time ago I got a 4 inch HDMI display for my Pi Zero and did a short test updating the screen as quickly as possible while waiting for vsync, the crudest of game loops. And it worked quite well. Basically the loop amounts to clearing the whole screen with FramebufferDeviceFillRect , drawing some...
by Poi
Sun Jul 07, 2019 12:49 pm
Forum: Discussion
Topic: GPIOInputEvent data argument
Replies: 2
Views: 324

Re: GPIOInputEvent data argument

That did the trick, thanks!

Of course I forgot that a string is actually a pointer to the first character of the chain! I blame modern languages for perpetuating the illusion that strings are primitive data types, what a scam :P
by Poi
Sat Jul 06, 2019 8:17 pm
Forum: Discussion
Topic: GPIOInputEvent data argument
Replies: 2
Views: 324

GPIOInputEvent data argument

I am trying and failing to use the GPIOInputEvent data argument. I got the events working properly across multiple push buttons, but getting a unique id on each event is proving to be difficult. I am using this procedure to set up the event procedure GPIOPinSetup(Pin:LongWord; Button:String); begin ...
by Poi
Thu Jun 13, 2019 8:03 pm
Forum: General
Topic: Booting from secondary SD card in Pi Zero?
Replies: 3
Views: 304

Re: Booting from secondary SD card in Pi Zero?

Thanks for the answers guys. In the end I used a micro sd to sd extender to meet my needs of using a larger card a little bit further away from the Pi. Not so fancy a solution, but it works just fine.
by Poi
Wed Jun 12, 2019 10:01 am
Forum: General
Topic: Booting from secondary SD card in Pi Zero?
Replies: 3
Views: 304

Booting from secondary SD card in Pi Zero?

Would it be possible to boot from a second sd card board wired to a Pi zero through the GPIO pins? Thinking of trying it out because I already have a couple of SD card breakout boards and I like the bigger sd cards better than the micro ones because they are easier to handle. At the moment the only ...
by Poi
Mon Apr 15, 2019 10:18 am
Forum: Discussion
Topic: Reading from a wireless SD card
Replies: 2
Views: 364

Re: Reading from a wireless SD card

This is great!

After going through the documentation of the SD card I found that if you make changes to the card through wifi, the only way for the host to pick up the changes is to unmount and mount again, but I thought you couldn't do that directly from Ultibo.

I'll be sure to try this out.
by Poi
Sun Apr 14, 2019 1:15 am
Forum: Discussion
Topic: Reading from a wireless SD card
Replies: 2
Views: 364

Reading from a wireless SD card

After finding out that booting the Pi Zero W from USB wasn't going to help too much with the hassle of copying files to the sd card and inserting the card each time, I figured out I would try with a wireless SD card. A bit backwards since the Zero W already has wireless connectivity hardware built i...
by Poi
Wed Apr 10, 2019 12:33 am
Forum: Discussion
Topic: Booting Pi Zero from USB?
Replies: 8
Views: 598

Re: Booting Pi Zero from USB?

Timeout related? In the end I didn't have to do that. Just adding a file named "timeout" sounded super suspicious too :P Might get some debug output on the serial port, Is this a bootcode.bin hack? No, it is not hacked in any way, just the regular file you can find in https://github.com/r...

Go to advanced search