Go to advanced search

by pik33
Tue Nov 19, 2019 7:35 am
Forum: Bare metal, Assembly language
Topic: Circle - C++ bare metal environment (with USB)
Replies: 242
Views: 67213

Re: Circle - C++ bare metal environment (with USB)

Hello, As i mentioned in an other post i am porting the PreenFM2-Synth to baremetal RaspberryPi with the Circle-Framework, and so far it seems to work! its really ugly but if anybody wants to try it out: https://github.com/styro2000/RasPreenFM2/ Now am am trying to optimize things to get an better ...
by pik33
Sun Oct 13, 2019 9:54 am
Forum: OpenGLES
Topic: Web shader toys don't work - too advanced for RPi4?
Replies: 3
Views: 2090

Re: Web shader toys don't work - too advanced for RPi4?

A strange thing.

The shader I linked in the first post works on RPi3 and doesn't work (displaying a black screen) on RPi4
by pik33
Sat Oct 12, 2019 8:41 am
Forum: General programming discussion
Topic: Programming languages support
Replies: 37
Views: 3981

Re: Programming languages support

and the ONLY other camera library I know about is in Python.
I made this for Ultibo: https://github.com/pik33/SimpleCamera
by pik33
Sat Oct 12, 2019 7:00 am
Forum: Bare metal, Assembly language
Topic: Bare metal à la Arduino...
Replies: 7
Views: 1515

Re: Bare metal à la Arduino...

You may have a look at Circle. Wow, you have RPi4 supported - to be tested :) although c++ is not my favourite language. I saw RPi4 audio there at PWM#1... so I have questions (I didn't manage to find it in the code - where to search this?): - the clock source address for PWM1 - is it the same or a...
by pik33
Wed Oct 09, 2019 9:11 am
Forum: Bare metal, Assembly language
Topic: Bare metal à la Arduino...
Replies: 7
Views: 1515

Re: Bare metal à la Arduino...

Yes, the Ultibo is a customized Lazarus. You can do sudo apt-get lazarus, but I had some problems with this version on Raspbian (and PC debian too) so I built my own Lazarus for Raspbian from sources. In Windows, simply get a Lazarus from here https://www.lazarus-ide.org and install it Lazarus is a ...
by pik33
Wed Oct 09, 2019 7:34 am
Forum: Bare metal, Assembly language
Topic: Bare metal à la Arduino...
Replies: 7
Views: 1515

Re: Bare metal à la Arduino...

Yes, we have. With libraries for almost everything (no wifi yet, but vc4/omx/opengl is there) Works with RPi 0/1/2/3 (no RPi4 yet because of the new hardware - work in progress) The environment is called Ultibo "Normal" mode of operation is: install Ultibo on Windows, create a project, compile, copy...
by pik33
Sat Oct 05, 2019 4:00 pm
Forum: Graphics programming
Topic: Questions about fkms, gbm and color alpha channel
Replies: 6
Views: 1523

Re: Questions about fkms, gbm and color alpha channel

I also didn't manage to get any transparency/alpha channel using RPi4/FKMS. What I tried to achieve was an OpenGL window with a transparent background, so only 3D objects are visible. Using Lazarus, as it is multiplatform environment, and its OpenGL context component to start OpenGL, setting alpha b...
by pik33
Fri Oct 04, 2019 4:19 am
Forum: Bare metal, Assembly language
Topic: Spider-OS a new operating system
Replies: 113
Views: 19602

Re: Spider-OS a new operating system

a new follower of the assembler Not new :) Using asm for over 30 years :) But on RPi i use asm mixed with high level languages to speed up/make things possible. I wrote (1) SID emulator (https://github.com/pik33/ultibo_retro_gui/blob/master/retromalina.pas line 2423) (2) noise shaper for audio driv...
by pik33
Thu Oct 03, 2019 4:03 pm
Forum: Bare metal, Assembly language
Topic: Spider-OS a new operating system
Replies: 113
Views: 19602

Re: Spider-OS a new operating system

I added your website to my bookmarks.

Is there this fasmarm assembler available on RPi? I don't want to use a PC for RPi programming :)
by pik33
Thu Sep 05, 2019 3:22 pm
Forum: Bare metal, Assembly language
Topic: Clean, OS-independent Pi programming using C/C++
Replies: 11
Views: 1194

Re: Clean, OS-independent Pi programming using C/C++

Yes, it is, but it is Pascal. The Ultibo environment is an open source environment for programming RPi without OS and you can find a lot of hardware related information on its forum and its source files. As it is now Ultibo became a complex environment with a lot of operating system functionality, b...
by pik33
Wed Sep 04, 2019 4:41 am
Forum: Bare metal, Assembly language
Topic: Raspbian assembly draw a line on screen
Replies: 7
Views: 1071

Re: Raspbian assembly draw a line on screen

I have some graphics primitives here: https://github.com/pik33/ultibo_retro_gui/blob/master/retromalina.pas I did a "box" (filled rectangle) in asm; the rest of them are Pascal, using "putpixel" to put a pixel. I planned to rewrite them in asm but they are simply enough fast for me as they are now. ...
by pik33
Wed Aug 28, 2019 7:31 am
Forum: Gentoo
Topic: Updated 64-bit Gentoo Image for RPi3 Released (now also for RPi3B+ and RPi4B)
Replies: 394
Views: 91435

Re: Updated 64-bit Gentoo Image for RPi3 Released (now also for RPi3B+ and RPi4B)

First try with RPi4B/4GB: no wifi. The symptom is: it detects the router and asks for the password again and again. There is no problem with this router in Raspbian: you write a password and it connects. To be investigated later.
by pik33
Fri Aug 23, 2019 4:54 am
Forum: Bare metal, Assembly language
Topic: some basic raspberry pi questions related to chadderz121 tutorials
Replies: 5
Views: 1176

Re: some basic raspberry pi questions related to chadderz121 tutorials

The framebufer: You tell the GPU subsystem via its mailbox interface to make a framebuffer for you and return a pointer to it. All pixel, lines and characters drawing there is up to you. You put bytes there, GPU displays pixels from there. There is no automatic machine/2D accelerator which makes GPU...
by pik33
Sun Aug 18, 2019 6:11 am
Forum: OpenGLES
Topic: Another Pi4 GL working example - Lazarus
Replies: 7
Views: 3970

Re: Another Pi4 GL working example - Lazarus

This bgra stuff, without a typo, costed me a lot of time to debug, as the texture was black. So I played with the shader to switch this on, off, etc until I tried to switch to rgba and voila: what should be red was blue, but at least not black. So I tried to return to bgra with the second argument: ...
by pik33
Sat Aug 17, 2019 6:55 pm
Forum: OpenGLES
Topic: Another Pi4 GL working example - Lazarus
Replies: 7
Views: 3970

Re: Another Pi4 GL working example - Lazarus

I have now my cube-and-sphere demo working using Lazarus in Raspbian/X (without a text display yet) Differences between RPi3/Ultibo/OpenGL ES 2 and RPi4/X/OpenGL 2.,1 encountered so far: - no precision in shaders, they cannot compile with it - bgra textures seem to be not supported. The texture has ...
by pik33
Sat Aug 17, 2019 6:07 pm
Forum: OpenGLES
Topic: Rpi4 - OpenGL - X - alpha channel - possible?
Replies: 2
Views: 2849

Rpi4 - OpenGL - X - alpha channel - possible?

As in topic.

Is it possible to use alpha channel in OpenGL while displaying in X window? Can a window (with or without OpenGL) be transparent?
by pik33
Fri Aug 16, 2019 6:53 am
Forum: OpenGLES
Topic: Another Pi4 GL working example - Lazarus
Replies: 7
Views: 3970

Re: Another Pi4 GL working example - Lazarus

Strange, I did an apt-get install fpc then apt-get install lazarus and they just worked, weeks? ago. It seems to work until you want to add a component and rebuild Lazarus. Then it crash. It also crashed when I tried to compile the OpenGL example - cannot find openglcontrol or something related to ...
by pik33
Thu Aug 15, 2019 8:07 am
Forum: OpenGLES
Topic: Another Pi4 GL working example - Lazarus
Replies: 7
Views: 3970

Another Pi4 GL working example - Lazarus

Install Lazarus from SVN (not apt-get install :( - the .deb package for Buster is damaged on RPi AND on PC too :( ) svn checkout https://svn.freepascal.org/svn/lazarus/tags/lazarus_2_0_4 cd lazarus_2_0_4 make clean make bigide Run Lazarus Open GL control example Compile Run It simply works As the ex...
by pik33
Mon Aug 12, 2019 6:42 pm
Forum: Bare metal, Assembly language
Topic: Reserving cores for bare-metal programs - interupts
Replies: 36
Views: 5167

Re: Reserving cores for bare-metal programs - interupts

Isn't it possible that the reason of "interrupts" is the memory refresh and/or cpu freq switching thing? I had to add these lines to my baremetal (Ultibo) project's config.txt as I had clicks in my audio (driven by my own driver) #Without these setting there are clicks in the audio. disable_pvt=1 fo...
by pik33
Sun Aug 11, 2019 7:00 am
Forum: OpenGLES
Topic: RPi 4 OpenGL ES 3.0 ShaderToy to download (100+ examples)
Replies: 49
Views: 9851

Re: RPi 4 OpenGL ES 3.0 ShaderToy to download (100+ examples)

You cannot do bare metal in Pi4, but you still can do things without a window manager using Raspbian.
by pik33
Sat Aug 10, 2019 7:41 am
Forum: Polski
Topic: Raspberry Pi 3B a dysk przenośny 4 TB
Replies: 2
Views: 7969

Re: Raspberry Pi 3B a dysk przenośny 4 TB

sudo apt-get install ntfs-3g Powinno żyć. W zależności od maliny, zasilacza i dysku, nawet bez aktywnego huba, ale HDD na ogół będzie jednak go potrzebował. Moje maliny wytrzymują bez problemu dyski przenośne USB3 1 TB. EDIT: Dysk 2TB + szybki pendrive - okazało się że to za dużo dla malinki czwórki...
by pik33
Sat Aug 10, 2019 6:30 am
Forum: Beginners
Topic: Pi 3B+ Overclocking
Replies: 6
Views: 447

Re: Pi 3B+ Overclocking

I have active cooled (3cm fan @3.3v) RPi3 set at 1400/560/560 +force_turbo=1. It can run at 1500 but it is unstable: in (rare) occasion it hangs up, so I left it at 1400. What helps a lot is the core and RAM speed, it gives the RPi3 a lot of additional power even when the CPU is not overclocked
by pik33
Fri Aug 09, 2019 5:53 pm
Forum: OpenGLES
Topic: RPi 4 OpenGL ES 3.0 ShaderToy to download (100+ examples)
Replies: 49
Views: 9851

Re: RPi 4 OpenGL ES 3.0 ShaderToy to download (100+ examples)

These moving sand paintings were all the rage decades ago, got one somewhere.
This still exists and works on RPi4 :)

https://dan-ball.jp/en/javagame/dust/

If this is possible using Java, then shader based sand art should be possible too
by pik33
Fri Aug 09, 2019 4:38 pm
Forum: Advanced users
Topic: 4-bit digital CGA Output from GERT666 (or other GPIO connection)
Replies: 8
Views: 2717

Re: 4-bit digital CGA Output from GERT666 (or other GPIO connection)

Some ideas... Use 4 of 18 bits + sync from VGA666 pins (without connecting a vga666) via a level converter. Set 8-bit framebuffer with such a palette that first 16 colors of it will drive these 4 selected bits as a CGA monitor needs. I don't know if RPi will allow to set a video mode with 7.14 MHz p...

Go to advanced search