Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: Projectitis

Page 1 of 3 1 2 3

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    469

    Hi Richard - Google is your friend...

    Hi Richard - Google is your friend :)

    Basically, it can drive up to 26,000 LEDs in full-colour. It supports slideshow-style images only (no video, but does support animated GIF and SWF - i haven't...
  2. Replies
    6
    Views
    469

    Hi everyone, I ended up purchasing 6 LED...

    Hi everyone,

    I ended up purchasing 6 LED displays at 64x32 pixels in size, which I'm connecting in a 3x2 matrix for a total size of 128x96 pixels. Each pixel is 5 x 5mm square (P5) and the size of...
  3. Replies
    6
    Views
    469

    I guess I could find some very low power RGB LEDs...

    I guess I could find some very low power RGB LEDs and wire up each pixel individually. However I think I'll be dead before completing all 100,000 pixels :rolleyes:
    At an estimated ~15 minutes a...
  4. Replies
    43
    Views
    1,076

    @luke.saber, if bit order is the issue take a...

    @luke.saber, if bit order is the issue take a look at these bit-hacks for reversing bit order:
    https://graphics.stanford.edu/~seander/bithacks.html#BitReverseObvious

    I also have a python script...
  5. Replies
    6
    Views
    469

    Large indoor pixel-art display frame

    Hi all,

    Just playing around with an idea for an indoor art piece. I'm a fan of 8-bit art (who isn't ;) ), and instead of printing and hanging on the wall, I'v been toying around with a large...
  6. Replies
    8
    Views
    424

    Wow, thank you everyone! Tactif CIE - thanks for...

    Wow, thank you everyone!
    Tactif CIE - thanks for the info on pragmas.
    Nominal Animal - once again, right on the mark with the tip on array addressing.
    MichaelMeissner - Thanks for the...
  7. Replies
    8
    Views
    424

    Thank you :) Do you know if it is possible to do...

    Thank you :)
    Do you know if it is possible to do this at the code level (not at compiler)? It would be great if there was something like:


    c = (*p++ << 14) | ((*p << 6) & 0b0011100000000000) |...
  8. Replies
    8
    Views
    424

    Sequence point compiler error

    Hi all,

    I have the a few calculations like the following:


    c = (*p++ << 14) | ((*p << 6) & 0b0011100000000000) | ((*p++ << 7) & 0b0000011110000000) | ((*p >> 1) & 0b0000000001111111);

    I get...
  9. By all means. A little math doesn't scare me,...

    By all means. A little math doesn't scare me, and, yes, it's very interesting!
  10. Have bookmarked the link. Very useful. Just did...

    Have bookmarked the link. Very useful.
    Just did a bit of testing, and in most of the cases I'm interested in the approximation is dead-on, or only 1 out at most. This is great.

    Example:
    16511
  11. That is fantastic :) The standard mathematical...

    That is fantastic :)
    The standard mathematical linear interpolation equations are well known, but this is the first time I've run into these approximations, so thank you!
    I'll take a look when I...
  12. Just a visual to show the 'accuracy' of the...

    Just a visual to show the 'accuracy' of the current approximation.
    This example changes a 6-bit number to 3-bits and back again.
    16501
  13. Yes, a LUT would be one solution for sure :) We...

    Yes, a LUT would be one solution for sure :)
    We would actually only need a 32 bytes LUT to go from 5-bit to 8-bit (up scaling).

    But I disagree - it's not just a special case. It is fast linear...
  14. Yes, I understand completely what shifting does...

    Yes, I understand completely what shifting does :) That's not the issue.

    I'm trying to find a 'fast' way to increase the number of bits which results in a linear interpolation.
    So far the formula...
  15. This is better for scaling up, but still not...

    This is better for scaling up, but still not ideal -



    // b = bits to shift
    // n = original number
    uint8_m = (n==0)?0:((n+1) << b) - 1;
  16. Fast changing range or bits of a number (e.g. 0-31 to 0-255)

    Hi all,

    EDIT: Nope this doesn't work for all ranges. Works for 4-bit to 2-bit back to 4-bit, and works for 8-bit to 4-bit and back to 8-bit, but not others.

    Just putting this here for future...
  17. Replies
    24
    Views
    1,375

    Packed BDF (ILI9341_t3_font_t) format...

    Packed BDF (ILI9341_t3_font_t) format specification, instructions and scripts for creating anti-aliased (and 1bpp) fonts here:
    https://github.com/projectitis/packedbdf
  18. Aaaand have improved the original font rendering...

    Aaaand have improved the original font rendering speed (1bpp, non anti-aliased fonts) of ILI9341_t3:
    original 1bpp fonts 14971
    improved 1bpp fonts 11360 (~25% faster)
    (Compare to new anti-alias...
  19. @mjs513 I have updated my branch of Paul's...

    @mjs513 I have updated my branch of Paul's ILI9341_t3 library with more efficient anti-alias rendering. Its about 25% faster than the standard non-anti-aliased rendering!
    Normal rendering: 14971...
  20. Scripts and instructions to create packed BDF...

    Scripts and instructions to create packed BDF anti-aliased fonts here:
    https://github.com/projectitis/packedbdf

    Full description of packedbdf_t data type also in the repo. Many thanks to Paul,...
  21. Hi @mjs513 - I've got family here for a few days,...

    Hi @mjs513 - I've got family here for a few days, but after that I'll take a look :) I have a fix for the speed that will make it actually faster than the standard non ant-aliased font rendering, and...
  22. ok KurtE, you should see a pull request to...

    ok KurtE, you should see a pull request to support anti-alias fonts.

    I've tested both with and without framebuffer, and both seem to be ok (using graphicstest_aafonts example).
    I've noticed that...
  23. Hi Paul, no problem. Exciting! Can't wait for T4...

    Hi Paul, no problem. Exciting! Can't wait for T4 :D
    In the mean time, here is my fork and the anti-alias-font branch.

    Hi KurtE, I'll add support for BDF2.3 (anti-aliased) fonts to your version of...
  24. Hi Paul, I added my support for anti-aliased...

    Hi Paul,

    I added my support for anti-aliased fonts to the ILI9341_t3 library. It simply uses the textbgcolor to work out "anti-aliased" pixel values (so doesn't read from the display first).
    The...
  25. Replies
    24
    Views
    1,375

    @Spook - you've already confirmed this, but yes...

    @Spook - you've already confirmed this, but yes each value in the index is actually a byte offset, not a bit offset. I can confirm that Paul's code pads each glyph to a byte boundary, and the the...
  26. Replies
    24
    Views
    1,375

    @Spook - just a note in case you or anyone else...

    @Spook - just a note in case you or anyone else ever comes back to this: Even though the rendering code doesn't care if the repetitions are greater than 8 (6+2), the code that Paul has written to...
  27. Replies
    24
    Views
    1,375

    Hi Paul - at this stage all the drawing functions...

    Hi Paul - at this stage all the drawing functions in my library work on an in-memory framebuffer (so at the moment it's T3.5 and T3.6 only). That makes blending miles easier, and means the library...
  28. Replies
    24
    Views
    1,375

    I realise I'm just talking to myself, but I'll do...

    I realise I'm just talking to myself, but I'll do it anyway :D

    Finished getting anti-aliased BDF fonts to encode into ILI9341_t3_font_t now. Now just testing and debugging. As above, anti-alias...
  29. Replies
    24
    Views
    1,375

    This looks like it's going to be pretty straight...

    This looks like it's going to be pretty straight forward. I'm about 90% through converting Paul's bdf_to_c to python, and making the changes to support anti-aliased fonts. The data structure is the...
  30. Replies
    24
    Views
    1,375

    If anyone wants to generate BDF using FontForge...

    If anyone wants to generate BDF using FontForge in the future:

    Reduce font character set:
    1) Load the font TTF (or other)
    2) Select the characters you want to keep
    3) Edit > Select > Invert...
  31. Replies
    24
    Views
    1,375

    Hi guys, I'm working on memory-buffer based...

    Hi guys,

    I'm working on memory-buffer based rendering for T3.5/3.6. I already have methods for anti-aliased lines and triangles, and alpha-supported bitmap blitting from in a range of colour...
  32. Hi all - as a software developer I use Sublime...

    Hi all - as a software developer I use Sublime text on Windows as my main editor. Is it simple/worth it to get sublime integrated with Arduino, or should I keep doing what I have been doing: (1)...
  33. Finally got around to a video of this in action....

    Finally got around to a video of this in action. Sorry, not much to see!


    https://www.youtube.com/watch?v=1Rjakc8GxM8
  34. I am using the Arduino IDE, so yes, it exists...

    I am using the Arduino IDE, so yes, it exists there in my case.

    Yes, the f suffix can be used - see code below. Other suffixes exist too, for binary, long etc, to force the compiler to use a...
  35. Included in the source is the code that creates a...

    Included in the source is the code that creates a low-memory version of the XM module so that it can play directly from Flash mem (called a 'libxmized' version by the original author). However,...
  36. :) I've started a new thread for the...

    :)

    I've started a new thread for the 'completed' project (with github link etc): https://forum.pjrc.com/threads/52228-Project-libxm_t3-(XM-music-module-player)
  37. Project: libxm_t3 (XM music module player)

    Hi all,

    I've uploaded the latest version of libxm_t3 to github: https://github.com/projectitis/libxm_t3
    libxm_t3 is a port of a compact XM player, libxm by Artefact2:...
  38. I've solved it. It was an issue with me and the...

    I've solved it. It was an issue with me and the compiler having a different understanding of what was happening.

    This code converts the float sample (-1.0f < s < 1.0f) to the range 0 < s < 4095...
  39. Replies
    6
    Views
    554

    Awesome, thank you.

    Awesome, thank you.
  40. Replies
    6
    Views
    554

    Thanks GremlinWrangler. Almost all of the DAC...

    Thanks GremlinWrangler. Almost all of the DAC examples and threads I can find are specifically for the Audio shield, so finding relevant info is quite tricky!
  41. Hi all, ok, now I DO have a question! My XM...

    Hi all,

    ok, now I DO have a question!

    My XM player is generating audio samples in the range -1.0f < s < 1.0f (in practice, the range is more like -01.f < s < 0.1f).
    I have verified that the...
  42. Replies
    6
    Views
    554

    Sorry, basic mistake. The pins aren't 21 and 22,...

    Sorry, basic mistake. The pins aren't 21 and 22, they are A21 and A22!



    void setup() {
    // put your setup code here, to run once:
    analogWrite( A21, (uint32_t)(4095 * 1) );
    analogWrite(...
  43. Replies
    6
    Views
    554

    Testing if DAC pins are working

    Hi all,

    I may have fried my DAC pins on T_3.6 (but I'm unsure how). I just stopped getting audio while debugging a project.
    I've tried a very simple sketch (below) to see if they are working, but...
  44. Replies
    24
    Views
    1,544

    So this startup code should be ok then: ...

    So this startup code should be ok then:


    uint32_t start = millis();

    Serial1.begin(9600);
    Serial.begin(9600);
    while ( !Serial && ((millis()-start) < 4000) ) {
    delay(1);
    }
  45. Replies
    24
    Views
    1,544

    Not sure if this helps or not, but during your...

    Not sure if this helps or not, but during your init code you may be filling the Serial buffer up with data. I'm not entirely sure how Serial works but this is my understanding:

    ...
  46. Hi Teenfor3 - I don't really have a question at...

    Hi Teenfor3 - I don't really have a question at this stage. I was just reporting back with the status of my project.

    I've ported an xm music player to Teensy and am debugging it.

    I've now...
  47. Well, I have the pre-amp board hooked up. Good...

    Well, I have the pre-amp board hooked up. Good news is that it works (amplifies). bad news is that the sound is as crap as before, JUST VERY LOUD! :D
  48. Replies
    19
    Views
    2,739

    @KurtE and @tonton81 from the discussions above,...

    @KurtE and @tonton81 from the discussions above, the problem only occurs when there is unaligned access across the boundary. According to information I can find online, malloc will always allocate...
  49. Replies
    19
    Views
    2,739

    here is Paul's reply to one of my posts regarding...

    here is Paul's reply to one of my posts regarding unaligned memory access:



    So @MichaelMeissner is correct - there is one address that will cause a fault if reading from RAM, but from Flash it...
  50. Hi Ed, Actually, from your description, our...

    Hi Ed,

    Actually, from your description, our GUI classes work very similarly. And it's also the "normal" way to implement a GUI, so it's great you've done it that way :) This is what my hierarchy...
Results 1 to 50 of 146
Page 1 of 3 1 2 3