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
Last edited:
When making GUIs, object oriented programming and pointers are your friends. For exampleBut what about coding ?
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:
I'm noob in programming, remember only Basic from ZX Spectrum. Hope that may be it possible to correct the finished existing code according to DAC specific settings.
Maybe take a look at this stuff:
I2C bus programming with Arduino (some of this is more or less in reverse order):
https://www.diyaudio.com/community/threads/es9038q2m-board.314935/post-6386977
I2C Library URL:
https://github.com/felias-fogg/SoftI2CMaster
Troubleshooting the I2C bus:
https://www.diyaudio.com/community/threads/es9038q2m-board.314935/post-6392768
Introduction to number systems, etc.:
https://www.diyaudio.com/community/threads/es9038q2m-board.314935/post-6393768
https://www.diyaudio.com/community/threads/es9038q2m-board.314935/post-6393809
More about Arduino I2C bus pins:
https://www.diyaudio.com/community/threads/es9038q2m-board.314935/post-6386941
Arduino pinout diagrams:
https://www.diyaudio.com/community/threads/es9038q2m-board.314935/post-6382409
https://www.diyaudio.com/community/threads/es9038q2m-board.314935/post-6382475
I2C bus programming with Arduino (some of this is more or less in reverse order):
https://www.diyaudio.com/community/threads/es9038q2m-board.314935/post-6386977
I2C Library URL:
https://github.com/felias-fogg/SoftI2CMaster
Troubleshooting the I2C bus:
https://www.diyaudio.com/community/threads/es9038q2m-board.314935/post-6392768
Introduction to number systems, etc.:
https://www.diyaudio.com/community/threads/es9038q2m-board.314935/post-6393768
https://www.diyaudio.com/community/threads/es9038q2m-board.314935/post-6393809
More about Arduino I2C bus pins:
https://www.diyaudio.com/community/threads/es9038q2m-board.314935/post-6386941
Arduino pinout diagrams:
https://www.diyaudio.com/community/threads/es9038q2m-board.314935/post-6382409
https://www.diyaudio.com/community/threads/es9038q2m-board.314935/post-6382475
If you're looking to extract the code, modify and put it back in, then I think that doesn't quite fall into the beginner's league. Besides, you're linking to a China board ...I'm noob in programming, remember only Basic from ZX Spectrum. Hope that may be it possible to correct the finished existing code according to DAC specific settings.
- Home
- Design & Build
- Construction Tips
- How to make own MCU with LCD for control a DAC in register mode ?