Search found 252 matches

by haiqu
Mon Dec 12, 2016 2:08 pm
Forum: Bug reports
Topic: Qemu oddity
Replies: 14
Views: 2219

Re: Qemu oddity

A very short piece of code that replicates the current bug: program HelloWorld; {$mode objfpc}{$H+} uses GlobalConst, GlobalTypes, Devices, Threads, Console, Framebuffer, PiTFT32, BCM2836, BCM2709; var WindowHandle:TWindowHandle; begin PiTFT32Init; // Shouldn't be necessary WindowHandle:=ConsoleWind...
by haiqu
Mon Dec 12, 2016 11:46 am
Forum: Bug reports
Topic: Qemu oddity
Replies: 14
Views: 2219

Re: Qemu oddity

The HD44780 and a framebuffer device in console mode are both character mode devices. Therefore there has to be a way to set the TFT screen as a console. I just haven't found it yet due to the lack of API documentation and complexity of Ultibo. The title of this thread may suggest a problem with Qem...
by haiqu
Mon Dec 12, 2016 11:16 am
Forum: Bug reports
Topic: Qemu oddity
Replies: 14
Views: 2219

Re: Qemu oddity

Finally seem to have gotten to the bottom of this. The HD44780 two-line LCD panel driver has a bunch of console functions, that was the giveaway. No such functions exist in any of the PiTFTxx drivers. Can't work without them. So it seems I copied a half-finished driver. At least I think that's what ...
by haiqu
Mon Dec 12, 2016 10:56 am
Forum: Bug reports
Topic: Qemu oddity
Replies: 14
Views: 2219

Re: Qemu oddity

Qemu works with that, but the LCD still gives me an orange screen with a sign-on message and a border, and no output from my program. This is getting ... interesting.
by haiqu
Mon Dec 12, 2016 10:44 am
Forum: Bug reports
Topic: Qemu oddity
Replies: 14
Views: 2219

Re: Qemu oddity

Nailed it: ConsoleWindowCreate(ConsoleDeviceGetDefault,CONSOLE_POSITION_FULLSCREEN,True); No orange border, WriteLn() works again. Wow, I really need to spend a week or so and go through the code to write down all the various API calls and constants. Some of us haven't been using this system since 2...
by haiqu
Mon Dec 12, 2016 9:42 am
Forum: General
Topic: Local TFT LCD
Replies: 74
Views: 9360

Re: Local TFT LCD

Oh yeah, I just remembered that I found a 128x64 OLED that I bought years ago, it was sitting at the bottom of an old icecream container full of 2.5" HDDs. Might have a crack at that some day too.
by haiqu
Mon Dec 12, 2016 9:24 am
Forum: General
Topic: Local TFT LCD
Replies: 74
Views: 9360

Re: Local TFT LCD

Just had a look at that driver here . The magical unicorn dust, sparkles and rainbows are a bit of a worry. I'm pretty sure starting with a working driver such as PiTFT32 will be a lot faster than converting raw C code. Once you get the Init() routine nailed it should at least output something, then...
by haiqu
Mon Dec 12, 2016 8:51 am
Forum: Bug reports
Topic: Qemu oddity
Replies: 14
Views: 2219

Re: Qemu oddity

FYI a similar bug in the TFT driver was just fixed by adding `ThreadSleep(1000);` at the end of the Init routine.
by haiqu
Mon Dec 12, 2016 8:36 am
Forum: General
Topic: Local TFT LCD
Replies: 74
Views: 9360

Re: Local TFT LCD

Damn it. Even though it works fine in the program I'm building right now, I just tested the examples and it's still not fixed. Oh well, at least I don't have to remember to add a delay any longer.
by haiqu
Mon Dec 12, 2016 8:21 am
Forum: General
Topic: Local TFT LCD
Replies: 74
Views: 9360

Re: Local TFT LCD

Unresolved issues so far: 1. ̶E̶v̶e̶n̶ ̶i̶f̶ ̶A̶U̶T̶O̶S̶T̶A̶R̶T̶=̶T̶r̶u̶e̶ ̶i̶n̶ ̶g̶l̶o̶b̶a̶l̶c̶o̶n̶f̶i̶g̶.̶p̶a̶s̶ ̶I̶ ̶s̶t̶i̶l̶l̶ ̶n̶e̶e̶d̶ ̶t̶o̶ ̶s̶p̶e̶c̶i̶f̶i̶c̶a̶l̶l̶y̶ ̶i̶n̶i̶t̶ ̶t̶h̶e̶ ̶d̶r̶i̶v̶e̶r̶ ̶i̶n̶ ̶t̶h̶e̶ ̶a̶p̶p̶l̶i̶c̶a̶t̶i̶o̶n̶.̶ - FIXED 2. Environment variables in cmdline.txt are be...

Go to advanced search