Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 6 of 6

Thread: Utility to convert PowerPoint slides to ILI9341_t3 code

  1. #1

    Utility to convert PowerPoint slides to ILI9341_t3 code

    All,

    If you use ILI9341_t3 libs and common screens, you may find it tedious in writing the display screens, especially if you have lots of graphical items like boxes and text.

    I find it easier to prototype screens in PowerPoint where I can get the look and feel before writing code. And to make coding easier I wrote a small macro that live inside PowerPoint that converts PowerPoint graphical objects to code that runs on the ILI9341_t3 screens.

    My macro will convert Lines, text boxes, rectangles, circles, and triangles. Where supported by the ILI9341 driver, gradients can also be used we well as solid fill colors. The code will leverage any font and size but you MUST have the fonts created in order to compile the created INO file. Slide 1 lists its usage and supported items.

    The supplied PowerPoint has a very odd size in order to get an applied font size to look close to the generated result. If you use something other than 320 x 240 you will have to adjust the slide size and modify the scale factor that is part of the generated code.

    Maybe this will help you create cool screens.

    Here's a pic of the PPT and created screen

    Click image for larger version. 

Name:	Image1.jpg 
Views:	54 
Size:	107.8 KB 
ID:	20559

    Here's a link the the PPT. Note it does have a macro, so you will need to allow macros

    https://github.com/KrisKasprzak/Powerpoint-ILI9341_t3

  2. #2
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    5,458
    @KrisKasprzak - very cool !!!! This really will make life easier - at least for me since I know PowerPoint real well Will come in handy for my next project!

  3. #3
    Senior Member
    Join Date
    Oct 2019
    Posts
    134
    Could you add an example of the ino file to the Github repo?

    I have PP on a Mac (latest version) but I don't think it supports developer mode - I guess I can only use this on a PC?

  4. #4
    I have uploaded a new PPT (fixed up some code) and uploaded the created .ino file.

  5. #5
    Junior Member
    Join Date
    Jun 2020
    Posts
    7
    Neat idea!

  6. #6
    Senior Member
    Join Date
    Oct 2019
    Posts
    134
    Quote Originally Posted by KrisKasprzak View Post
    I have uploaded a new PPT (fixed up some code) and uploaded the created .ino file.
    Thank you! I’ll try run it in on Bootcamp and play around with it over the weekend!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •