Skip to main content

Messages

This section allows you to view all Messages made by this member. Note that you can only see Messages made in areas you currently have access to.

Messages - MarkusL

1
Project logs / Re: Controller Board for Adafruit's Large RGB Matrix Display
Of course you can also put it in one library. I just like it when functionallity is seperated: Everything that is directly related to interfacing the panel in one, and helper functions like draw line in another, for example like the adafruit Adafruit_GFX and Matrix libraries. This can make reuse of the parts easier.
3
Project logs / Re: Controller Board for Adafruit's Large RGB Matrix Display
Generally, I'd keep it as simple as possible. Most users just want the RGB-Panel to work, and concentrate on other stuff. The few users who have very specific requirements or like to tweak every byte can just modify the library directly. I'd also keep it lean, just adding basic functions like drawPixel(), everything else like drawText() or drawLine() should be in a separate library.

I'd also choose variant 3. Normally it's great to have a library configurable, for example changing the number of pixels. However, in this specific case, there are only two possible options: 16x32 and 32x32. To my knowledge no others exist. And if there were others, they'd have a completely different interface anyway.

Regarding variant 2: I don't think you can guarantee that the memory allocated with malloc() is in the DMAMEM area, so probably this variant is not optimal.

Variant 1: This is great for LED-strips, because users can have a lot of different sizes. However, the panel only comes in two sizes, so this is not really necessary.

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01372358752session_write_close ( )...(null):0
20.01402490352ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01412491128Database_MySQL->query( ).../DatabaseHandler.php:119
40.05802629872Database_MySQL->error( ).../Db-mysql.class.php:273