Repository navigation
Configuration
Consider using the Toaster Oven to easily configure your protogen!
- The configuration can be found in
ToasterOS/Config.h- This file includes configuration for the face LEDs, the side lights, boop sensor and more.
- The faces can be foudn in
ToasterOS/Protogen_Faces.h
There are some examples below for different setups.
At the bottom there are debugging steps if you're having problems.

FaceConfig::FaceConfig() {
NumConnections = 1;
Connections = new FaceLEDConnection[NumConnections]{
{
// Pin configuration
.PIN_DataIn = 11,
.PIN_CS = 9,
.PIN_CLK = 13,
// Define the order of the panels
.NumPanels = 14,
.Panels = {
// Start: Right mouth back
{ .PanelType = PANEL_RIGHT_MOUTH_BACK, UpsideDown = false },
{ .PanelType = PANEL_RIGHT_MOUTH_MID_BACK, UpsideDown = false },
{ .PanelType = PANEL_RIGHT_MOUTH_MID_FRONT, UpsideDown = false },
{ .PanelType = PANEL_RIGHT_MOUTH_FRONT, UpsideDown = false },
// -> Left mouth front
{ .PanelType = PANEL_LEFT_MOUTH_FRONT, UpsideDown = false },
{ .PanelType = PANEL_LEFT_MOUTH_MID_FRONT, UpsideDown = false },
{ .PanelType = PANEL_LEFT_MOUTH_MID_BACK, UpsideDown = false },
{ .PanelType = PANEL_LEFT_MOUTH_BACK, UpsideDown = false },
// -> Left eye back
{ .PanelType = PANEL_LEFT_EYE_BACK, UpsideDown = false },
{ .PanelType = PANEL_LEFT_EYE_FRONT, UpsideDown = false },
// -> Left nose
{ .PanelType = PANEL_LEFT_NOSE, UpsideDown = false },
// -> Right nose
{ .PanelType = PANEL_RIGHT_NOSE, UpsideDown = false },
// -> Right eye front
{ .PanelType = PANEL_RIGHT_EYE_FRONT, UpsideDown = false },
{ .PanelType = PANEL_RIGHT_EYE_BACK, UpsideDown = false },
},
}
};
}
FaceConfig::FaceConfig() {
// Separate left and right connection
NumConnections = 2;
Connections = new FaceLEDConnection[NumConnections]{
{
// Pin configuration
.PIN_DataIn = 3,
.PIN_CS = 4,
.PIN_CLK = 5,
// Define the order of the panels
.NumPanels = 7,
.Panels = new PanelConfig[7]{
// Start: mouth back
{ .PanelType = PANEL_RIGHT_MOUTH_BACK, .UpsideDown = true },
{ .PanelType = PANEL_RIGHT_MOUTH_MID_BACK, .UpsideDown = true },
{ .PanelType = PANEL_RIGHT_MOUTH_MID_FRONT, .UpsideDown = true },
{ .PanelType = PANEL_RIGHT_MOUTH_FRONT, .UpsideDown = true },
// -> nose
{ .PanelType = PANEL_RIGHT_NOSE, .UpsideDown = false },
// -> eye front
{ .PanelType = PANEL_RIGHT_EYE_FRONT, .UpsideDown = false },
{ .PanelType = PANEL_RIGHT_EYE_BACK, .UpsideDown = false },
},
},
{
// Pin configuration
.PIN_DataIn = 6,
.PIN_CS = 7,
.PIN_CLK = 8,
// Define the order of the panels
.NumPanels = 7,
.Panels = new PanelConfig[7]{
// Start: mouth back
{ .PanelType = PANEL_LEFT_MOUTH_BACK, .UpsideDown = false },
{ .PanelType = PANEL_LEFT_MOUTH_MID_BACK, .UpsideDown = false },
{ .PanelType = PANEL_LEFT_MOUTH_MID_FRONT, .UpsideDown = false },
{ .PanelType = PANEL_LEFT_MOUTH_FRONT, .UpsideDown = false },
// -> nose
{ .PanelType = PANEL_LEFT_NOSE, .UpsideDown = true },
// -> eye front
{ .PanelType = PANEL_LEFT_EYE_FRONT, .UpsideDown = true },
{ .PanelType = PANEL_LEFT_EYE_BACK, .UpsideDown = true },
},
}
};
}FaceConfig::FaceConfig() {
// Separate left and right connection
NumConnections = 1;
Connections = new FaceLEDConnection[NumConnections]{
{
// Pin configuration
.PIN_DataIn = 12,
.PIN_CS = 11,
.PIN_CLK = 10,
// Define the order of the panels
.NumPanels = 11,
.Panels = new PanelConfig[11]{
// Start Right eye back
{ .PanelType = PANEL_RIGHT_EYE_BACK, .UpsideDown = true },
{ .PanelType = PANEL_RIGHT_EYE_FRONT, .UpsideDown = true },
// -> Right mouth back
{ .PanelType = PANEL_RIGHT_MOUTH_BACK, .UpsideDown = true },
{ .PanelType = PANEL_RIGHT_MOUTH_MID_BACK, .UpsideDown = true },
{ .PanelType = PANEL_RIGHT_MOUTH_MID_FRONT, .UpsideDown = true },
// -> Nose
{ .PanelType = PANEL_SINGLE_NOSE, .UpsideDown = true },
// -> Left mouth front
{ .PanelType = PANEL_LEFT_MOUTH_MID_FRONT, .UpsideDown = true },
{ .PanelType = PANEL_LEFT_MOUTH_MID_BACK, .UpsideDown = true },
{ .PanelType = PANEL_LEFT_MOUTH_BACK, .UpsideDown = true },
// // -> Left eye back
{ .PanelType = PANEL_LEFT_EYE_FRONT, .UpsideDown = true },
{ .PanelType = PANEL_LEFT_EYE_BACK, .UpsideDown = true },
// Example empty panel
// { .PanelType = -1, .UpsideDown = false },
},
}
};
}If the face isn't rendering properly, there are some steps you can take.
- Upside down panels or wrong order: Panel Debug Mode
- Glitching panels or incorrect rendering: Fix Glitching Panels
- In the configuration, change Debug Mode to "Render numbers on all panels" (3)
- Upload the updated code to your protogen and check the panels
- Panels should be numbered in the order you expect them to be connected
- Numbering goes from 0 to 9, then A,B,C,D,E,F
- None of the numbers should be upside down
- Each panel should have a dot in the top corner
- Top-left corner for the left side
- Top-right corner for the right side
- If a panel is upside down, change the "Upside down" setting for that panel in the config
- Confirm that the order of the panels in your config matches the order of the numbers ()
In this example, I have two connections- one for the left side, one for the right.
If you have a single connection, then you will get different numbers (e.g. 0-6 on the right, then 7-13 on the left)

If panels are flickering, not showing anything, fully lit up, showing random patterns or otherwise not working properly, follow these steps.
This software comes with a feature to "auto-recover" panels with loose connections. So you may see the panel fix itself every few seconds, before glitching again.
Loose connections on MAX7219 panels can be very difficult to debug.
A problem in a chain of panels can cause any of the panels to glitch out, not just the one with the loose connections.
You first have to test a small number of panels, in different orders, wiggling the cables, to ensure their inputs and outputs work correctly.
Then gradually introduce other panels.

- In this example, the purple pair of panels was glitching
- This could be a problem with the purple panels
- Or the output of the orange panels
- Or a problem somewhere else in the chain
- Swapping the purple and green panels resulted in the green panels glitching
- This makes it less likely that the problem is with the purple panels
- It seems most likely to be a problem with the orange panels
- It could still be a problem somewhere else in the chain
- Moving both purple and green panels to the front resulted in no glitches
- The orange panel output seems like the most likely cause now
To test further:
- We could swap the blue and orange panels and see if the blue panel glitches
- Or have blue -> green -> purple and see if anything glitches
To fix:
- Check and resolder the pins for the problem panels
REMEMBER: You may have multiple problems with your panels!
It's worth having spare panels