Go to advanced search

by Morphology
Wed Dec 13, 2017 2:05 pm
Forum: Graphics programming
Topic: What graphic library do you recomend?
Replies: 2
Views: 1828

Re: What graphic library do you recomend?

RayLib

www.raylib.com

That site has loads of example code for animations such as this.
by Morphology
Wed Dec 13, 2017 1:51 pm
Forum: Graphics programming
Topic: run the HDMI and TFT screen simultaneously
Replies: 37
Views: 27914

Re: run the HDMI and TFT screen simultaneously

You can mirror one to the other using raspi2fb: git clone https://github.com/AndrewFromMelbourne/raspi2fb.git cd raspi2fb mkdir build cd build cmake .. make sudo make install sudo cp ../[email protected].service /etc/systemd/system/ sudo systemctl daemon-reload sudo systemctl enable [email protected].service sudo ...
by Morphology
Tue Apr 04, 2017 1:28 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: will this TFT 2.2" lcd work with pi?
Replies: 2
Views: 549

Re: will this TFT 2.2" lcd work with pi?

I think you're right - looks like it uses a parallel interface for the screen, and SPI is only for the SD card.
by Morphology
Mon Mar 27, 2017 8:02 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C Pullups with powered peripheral
Replies: 4
Views: 563

Re: I2C Pullups with powered peripheral

True, maybe I'll just leave them off, and it does seem to work fine without them, though I was influenced by the schematics of various external boards such as this Pimoroni bi-directional level shifter, which include 10k pull-ups on the 3v3 side:
level shift.png
level shift.png (6.82 KiB) Viewed 548 times
by Morphology
Mon Mar 27, 2017 7:41 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C Pullups with powered peripheral
Replies: 4
Views: 563

I2C Pullups with powered peripheral

We all know about adding external pull-up resistors to the i2c bus (SDA / SCL) and, ordinarily, these would be between these lines and the 3v3 rail from the Pi. I have done this many times as, generally, I am then feeding the i2c signals through a bi-directional level shifter before connecting them ...
by Morphology
Tue Feb 07, 2017 3:38 pm
Forum: General discussion
Topic: Poll: raspberry Pi enterprise usage
Replies: 15
Views: 4418

Re: Poll: raspberry Pi enterprise usage

Oh, and at a previous Organisation I put one in each of our remote sites solely so that I could connect into it and send WakeOnLAN messages to certain client devices - WoL messages don't travel across routed networks that have Unicast forwarding disabled, so, again, the Pi was a cheap, low-power, re...
by Morphology
Tue Feb 07, 2017 3:32 pm
Forum: General discussion
Topic: Poll: raspberry Pi enterprise usage
Replies: 15
Views: 4418

Re: Poll: raspberry Pi enterprise usage

If your question is Are you an enterprise, and are you running any Raspberry Pi's? then yes, absolutely, I have several hooked up as environmental monitors in some of our server rooms, I can query them via SNMP so I can use our network monitoring systems to generate alerts on under / over temperatur...
by Morphology
Tue Jan 10, 2017 1:03 pm
Forum: Graphics programming
Topic: Naive and heretical questions about X11 on the Pi
Replies: 6
Views: 2369

Re: Naive and heretical questions about X11 on the Pi

+1 for RayLib

Comes with loads of examples for displaying text, graphics etc. no X / Pixel needed.

Morph.
by Morphology
Wed Dec 21, 2016 9:28 pm
Forum: General discussion
Topic: PCB Design Software and Small Qty Manufacturing
Replies: 10
Views: 1857

Re: PCB Design Software and Small Qty Manufacturing

I'm using KiCad and find it perfect - prior to that I was using Eagle, but was getting very frustrated with the board size limitation in the free version, and was very wary of the licensing if I ever wanted to sell a design. I actually like the way that KiCad separates a schematic representation of ...
by Morphology
Wed Dec 21, 2016 9:07 pm
Forum: OpenGLES
Topic: Teaching a Functional Programming style via 2D game dev
Replies: 11
Views: 4041

Re: Teaching a Functional Programming style via 2D game dev

Isn't that what Raylib is designed for?
by Morphology
Fri Dec 09, 2016 10:12 pm
Forum: C/C++
Topic: Hello, Sanity! - want to learn low level programming
Replies: 5
Views: 1468

Re: Hello, Sanity! - want to learn low level programming

Take a look at Raylib: http://www.raylib.com/ A simple graphics library specifically designed as an aid to teaching games software programming. Ray has added around 60 code examples, and the compile and build instructions are simple and robust. It really is a very simple way to get to understand how...
by Morphology
Fri Nov 25, 2016 9:16 am
Forum: Gaming
Topic: raylib - simple and easy-to-use library to make videogames
Replies: 16
Views: 7308

Re: raylib - simple and easy-to-use library to make videogam

Great work Ray!

I am really loving Raylib. I'm not a games developer, but am finding it ideal for conventional 2D GUI development on the Raspberry Pi. The examples are an invaluable learning resource.

Morph
by Morphology
Mon Nov 21, 2016 7:29 pm
Forum: Graphics programming
Topic: Graphics library for framebuffer writting
Replies: 1
Views: 3346

Re: Graphics library for framebuffer writting

I have been on the same journey. The excellent series by -rst- gives a good overview of writing directly to the framebuffer, and covers displaying lines, squares, circles, images and simple bitmap text: http://raspberrycompote.blogspot.co.uk/2012/12/low-level-graphics-on-raspberry-pi-part_9509.html ...
by Morphology
Sun Oct 30, 2016 10:53 am
Forum: C/C++
Topic: I2C and the dreaded Repeated Start bit
Replies: 8
Views: 1939

Re: I2C and the dreaded Repeated Start bit

Well, sad to say I am giving up on getting this to work. Bit banging over the standard I2C GPIOs 2 & 3 now works absolutely fine (thanks to Joan pointing me in the right direction), and I can write to all 16 devices individually even though they share the same 4 'physical' I2C addresses - the indivi...
by Morphology
Fri Oct 28, 2016 4:17 pm
Forum: C/C++
Topic: I2C and the dreaded Repeated Start bit
Replies: 8
Views: 1939

Re: I2C and the dreaded Repeated Start bit

Oh, I see - it's the read or write that sends it, rather than that it follows the Start bit. That makes a lot of sense. I know not to shift the address up one bit, as that's done by the sending routing when it tacks the r/w bit on the end. This all makes sense when I see it in the context of a known...
by Morphology
Fri Oct 28, 2016 2:45 pm
Forum: C/C++
Topic: I2C and the dreaded Repeated Start bit
Replies: 8
Views: 1939

Re: I2C and the dreaded Repeated Start bit

Set the address before the I2C operation. You can't reset the address in the middle of an I2C transaction. 0x04 0x4C 0x02 0x07 0x01 0x90 0x02 0x06 0x06 0x03 0x00 Try the above. 6 6 means read 6 bytes, change to 6 2 to read two bytes, Thanks Joan. Yes, sorry, the 0x06 0x06 was my mistake when typing...
by Morphology
Fri Oct 28, 2016 2:22 pm
Forum: C/C++
Topic: I2C and the dreaded Repeated Start bit
Replies: 8
Views: 1939

Re: I2C and the dreaded Repeated Start bit

TheodoreFletcher wrote:How he device appears on Physical I2C addresses 0x4C - 0x4F to talk to 16 devices you then set A2,A3 via a control register.
yes, I know. I can write to all 16 devices no problem. It's the need for a repeated start that is the problem.
by Morphology
Fri Oct 28, 2016 9:55 am
Forum: C/C++
Topic: I2C and the dreaded Repeated Start bit
Replies: 8
Views: 1939

I2C and the dreaded Repeated Start bit

Hi. I have run into the dreaded inability of the BCM2807 / Rapberry Pi to handle repeated starts on the I2C bus. Bit of history: I have designed and build a series of add-on boards based on the DAC8574 16-Bit I2C DAC. They work very well, and I can drive them no problem from a Pi using C/PIGPIO I2C ...
by Morphology
Thu Sep 29, 2016 12:17 pm
Forum: Graphics programming
Topic: GUI application (no console/window manager)
Replies: 24
Views: 11419

Re: GUI application (no console/window manager)

yes, I would expect raspi2fb to behave exactly the same as my put_pixel() function. The important differences for my app of using this 2-Phase approach would be 1) that my app can update the image in /dev/fb0 taking advantage of, say, OpenGL ES and so will benefit from hardware graphics acceleration...
by Morphology
Thu Sep 29, 2016 8:18 am
Forum: Graphics programming
Topic: GUI application (no console/window manager)
Replies: 24
Views: 11419

Re: GUI application (no console/window manager)

I haven't tried Gtk so I cannot answer your question, though this article seems to imply you can install Gtk+3: http://www.raspberry-projects.com/pi/programming-in-c/gui-programming-in-c/gtk/installing-gtk The main problem currently with anything that writes directly to /dev/fb1 on the RPi is that y...
by Morphology
Wed Sep 28, 2016 8:03 am
Forum: Graphics programming
Topic: GUI application (no console/window manager)
Replies: 24
Views: 11419

Re: GUI application (no console/window manager)

If raysan can confirm that raylib can work on a linux framebuffer and not only OpenGLES then I would maybe also suggest RayLib since its programmed in C I have just been through this exercise with Ray, and since Raylib relies on OpenGL ES and that doesn't support writing direct to the framebuffer (...
by Morphology
Sun Sep 25, 2016 1:36 pm
Forum: Gaming
Topic: raylib - simple and easy-to-use library to make videogames
Replies: 16
Views: 7308

Re: raylib - simple and easy-to-use library to make videogam

Ray, a couple of issues compiling Raylib on a Raspberry Pi by simply following the instructions on your Github page: I am using a new clean install of Jessie 2016-05-27. I cloned the Git repository. The initial make failed saying it couldn't create ../release/rpi/libraylib.a so I created the ../rele...
by Morphology
Thu Aug 11, 2016 1:22 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: i2cdetect stopped working
Replies: 2
Views: 1065

Re: i2cdetect stopped working

Interestingly I had exactly the same thing last night - I was debugging some external i2c hardware, and all of a sudden i2cdetect started running incredibly slowly - reading and displaying about 2 Addresses per second, so taking several minutes to complete a scan of the i2c address space. What was c...
by Morphology
Thu Jul 28, 2016 9:19 pm
Forum: C/C++
Topic: PIGPIO performance
Replies: 19
Views: 3029

Re: PIGPIO performance

A follow-up post for anyone who is interested: After learning that there was nothing fundamentally wrong with the way I'm using the PIGPIO library, I then started looking elsewhere for the cause of the glitchy performance of my sequencer and it turns out to be something I really wasn't expecting: It...
by Morphology
Thu Jul 28, 2016 4:13 pm
Forum: C/C++
Topic: PIGPIO performance
Replies: 19
Views: 3029

Re: PIGPIO performance

I've had a look at the code and can't see anything obviously wrong or see anything I would have structured differently. The gpioTrigger function uses a busy wait so the 100µs call you make will effectively waste 100µs of CPU time. There's no problem with that as long as it's not called too often. Y...

Go to advanced search