How to make own MCU with LCD for control a DAC in register mode ?

Hi! Did not find any guides about it. Interesting to make such a control frontend for AKM and ESS DIY boards. Something like small OLED screen + encoder and (stm32 ?) development board. But what about coding ?
 

Attachments

  • oled.png
    oled.png
    90.2 KB · Views: 26
Last edited:
But what about coding ?
When making GUIs, object oriented programming and pointers are your friends. For example

Code:
struct option                                                              // simple option structure
{
   char *name;                                                            // option description
};


struct page                                                                // simple page structure
{
   char *title;                                                                              // Page title
   unsigned short int page_no;                                                  // Page no
   unsigned short int option_count;                                          // Number of options
   struct option page_options[4];                                             // 4 simple options max
};

struct page page1;
struct page page2;

and so on ....

Then what you basically do is move the cursor between options or redirect between pages (using pointers) according to the buttons pressed. While every function / feature doesn't apply to every page some controls like volume, mute etc. should work on any page. It's tedious to get into the finer details of things but I think you'd get the general idea.

Hop that helps.
 
Last edited: