The MicroView is an innovative Arduino-compatible module that integrates a small OLED display with a microcontroller development board. This unique combination allows users to create projects with built-in visual feedback without the need for external display modules. Common applications include simple games, status displays for sensors, and educational tools for learning electronics and programming.
Pin Number | Function | Description |
---|---|---|
1 | GND | Ground |
2 | VIN | Input voltage to MicroView |
3 | 5V | Regulated 5V output |
4 | GND | Ground |
5 | D2 | Digital I/O, Interrupt |
6 | D3/PWM | Digital I/O, PWM output |
7 | D4 | Digital I/O |
8 | D5/PWM | Digital I/O, PWM output |
9 | D6/PWM | Digital I/O, PWM output |
10 | D7 | Digital I/O |
11 | D8 | Digital I/O |
12 | D9/A3 | Digital I/O, Analog Input |
13 | D10/A2 | Digital I/O, Analog Input |
14 | D11/A1 | Digital I/O, Analog Input |
15 | D12/A0 | Digital I/O, Analog Input |
16 | D13/LED | Digital I/O, Built-in LED |
17 | A4/SDA | Analog Input, I2C Data Line |
18 | A5/SCL | Analog Input, I2C Clock Line |
19 | RST | Reset |
20 | 3.3V | Regulated 3.3V output |
#include <MicroView.h>
// Initialize the MicroView object
MicroView uView;
void setup() {
uView.begin(); // Initialize the OLED display
uView.clear(PAGE); // Clear the screen
uView.print("Hello, World!"); // Print a message to the screen
uView.display(); // Refresh the display to show the message
}
void loop() {
// Main loop code goes here
}
uView.begin();
is called in the setup()
function.Q: Can I use the MicroView with a battery? A: Yes, the MicroView can be powered by a battery connected to the VIN pin, as long as the voltage is within the recommended range.
Q: Is the OLED display replaceable? A: The OLED display is not designed to be user-replaceable. Handle the display with care to avoid damage.
Q: How do I clear the display?
A: Use uView.clear(PAGE);
to clear the display. Remember to call uView.display();
to refresh the screen after clearing.
For further assistance, consult the MicroView community forums or contact technical support.