MikroElektronika
OLED Switch click
OLED Switch click
SKU:MIKROE-2449
Couldn't load pickup availability
Share
An OLED built in a button
This board has a module that combines a button and a full color organic LED display, plus input/output screw terminals for connecting an external circuit (to toggle it on and off).
The mechanical button itself is nicely built, with a translucent black housing. When pressed, it gives satisfying tactile feedback.
The display, built in the button itself, can show 64 by 48 pixel images with up to 65k colors (16-bit depth).
Displays crisp and clear images
The display is big enough to display simple information, whether as icons or words. Small characters are legible and clear.
The most interesting feature is that the display can be programmed to change the picture when needed (for example, you can design a reprogrammable keypad that would allow users to switch from latin to cyrillic script or to chinese characters).
VisualTFT can be used to prepare the bmp images. There is a learn.mikroe.com article that explains how to to take 16 or 24 bit bmp pictures and create C arrays. The article is about RGB matrices but the same principle applies.
The board communicates with the target MCU through the mikroBUS™ SPI interface. It uses a 3.3V power supply only.
Features
- NKK Switch ISC15ANP4
- OLED: 64x48px; 65k colors (16-bit depth)
- Long-lasting (3 million actuations minimum)
- All-in-one solution reduces complexity of HMI designs
- Screw terminals for connecting external electronics
- 3.3V power supply
- SPI interface
- Ready-to-use examples save development time
Specification
Type | OLED |
Applications | Any type of human machine interface |
On-board modules | NKK Switch ISC15ANP4, OLED: 64x48px; 65k colors (16-bit depth) |
Key Features | Screw terminals for connecting external electronics, All-in-one solution reduces complexity of HMI designs |
Key Benefits | Long-lasting (3 million actuations minimum) |
Interface | GPIO,SPI |
Input Voltage | 3.3V |
Compatibility | mikroBUS |
Click board size | M (42.9 x 25.4 mm) |
Features and usage notes
Hardware: a full color OLED built in a button
This board has a module that combines a button and a full color organic LED display, plus input/output screw terminals for connecting external electronics.
The mechanical button itself is nicely built, with a translucent black housing. When pressed, it gives satisfying tactile feedback.
The display, built in the button itself, can show 64 by 48 pixel images with up to 65k colors (16-bit depth).
With the screw terminals, you can toggle an external circuit on and off.
Software: frame buffering
The internal frame buffer on the OLED display holds 96x64 pixels with 2 bytes of 565 formatted color information for each. When displaying an image the size of the display, (64x48) the image will be displayed well, unless scrolled. To scroll an image without having random pixels from unused space in the internal frame buffer, load a 96x64 image onto the OLED Switch click with your desired image centered like the blue colored area in the picture below.
Programming
This code snippet takes a 565 formatted 16-bit bitmap and displays it on the OLED display, and then scrolls the image across the display.
1 #define BIG_IMG_SIZE 12288 2 3 void main() 4 { 5 //Local Declarations 6 scroll_t scroll; //Used for scroll settings 7 8 scroll.col_horiz_shift = 0x01; //Shift left to right 9 scroll.row_offset = 0; //No offset of rows 10 scroll.row_horiz_shift = 64; //64: BIG IMAGE, 47:SMALL ( SMALL doesn't work well, because of firmware on click side ) 11 scroll.row_vert_shift = 0; //No vertical shifting 12 scroll.interval = 1; //1: 10 frames between each shift 13 14 //Setup 15 system_setup( BIG ); //Provide size of allocated space for images ( 64x48 or 96x64 ) 16 17 oled_switch_deactivate_scrolling(); //Scrolling must be absolutely deactivated first 18 oled_switch_scrolling_setup( scroll ); //Next, setup scroll settings 19 oled_switch_draw_565_img( oled_switch_logo_big_bmp, BIG_IMG_SIZE ); //Draw the image to scroll 20 oled_switch_activate_scrolling(); //Activate scrolling on screen 21 22 while( 1 )//Forever 23 { 24 25 } 26 }
Code examples for OLED Switch click, written for MikroElektronika hardware and compilers are available on Libstock.
Pinout diagram
Notes | Pin |
![]() mikroBUStm |
Pin | Notes | |||
---|---|---|---|---|---|---|---|
1 | AN | PWM | 16 | D/C | Data/Command | ||
RST | 2 | RST | INT | 15 | |||
CS | 3 | CS | RX | 14 | |||
SCK | 4 | SCK | TX | 13 | |||
MISO | 5 | MISO | SCL | 12 | |||
MOSI | 6 | MOSI | SDA | 11 | |||
+3.3V | 7 | +3.3V | +5V | 10 | |||
GND | 8 | GND | GND | 9 | GND |




New Products
-
Sold out
OAK-FFC IMX577 M12
Vendor:POLOLURegular price Rs. 8,499.00Regular priceUnit price / perSold out -
Pololu Ideal Diode Reverse Voltage Protector, 4-60V, 20A
Vendor:POLOLURegular price Rs. 329.00Regular priceUnit price / perSold out -
Pololu Ideal Diode Reverse Voltage Protector, 4-60V, 25A
Vendor:POLOLURegular price Rs. 439.00Regular priceUnit price / perSold out -
Pololu I²C Isolator, ISO1640
Vendor:POLOLURegular price Rs. 449.00Regular priceUnit price / per -
3pi+ 32U4 OLED Robot Kit with 30:1 MP Motors (Standard Edition Kit)
Vendor:POLOLURegular price Rs. 15,549.00Regular priceUnit price / per -
Conductivity Calibration K 1.0 Set (4 pouches)
Vendor:Atlas ScientificRegular price Rs. 1,599.00Regular priceUnit price / perSold out -
Analog Discovery 3 Pro Bundle
Vendor:DigilentRegular price Rs. 42,569.00Regular priceUnit price / per -
Lighthouse swarm bundle - Crazyflie 2.1+ (250mAh batteries)
Vendor:BitcrazeRegular price Rs. 474,999.00Regular priceUnit price / perSold out -
Loco Swarm bundle - Crazyflie 2.1+ (250mAh batteries)
Vendor:BitcrazeRegular price Rs. 544,999.00Regular priceUnit price / perSold out -
Kopis X8 Cinelifter 5" Kit - Caged (Frame Kit)
Vendor:HolybroRegular price Rs. 28,199.00Regular priceUnit price / per -
Atlas Scientific i3 InterLink
Vendor:Atlas ScientificRegular price Rs. 6,349.00Regular priceUnit price / per -
Sold out
PoE Injector
Vendor:LuxonisRegular price Rs. 2,099.00Regular priceUnit price / perSold out -
Sold out
1-Port VINT Hub Phidget
Vendor:PhidgetsRegular price Rs. 2,699.00Regular priceUnit price / perSold out -
Holybro 1045 Propeller 2 Pair CW+CCW-Black
Vendor:HolybroRegular price Rs. 1,549.00Regular priceUnit price / per -
ACS37220LEZATR-100B3 Current Sensor Large Carrier -100A to +100A, 3.3V
Vendor:POLOLURegular price Rs. 829.00Regular priceUnit price / per -
CT433-HSWF50MR TMR Current Sensor Compact Carrier -50A to +50A, 3.3V
Vendor:POLOLURegular price Rs. 1,039.00Regular priceUnit price / per -
A5984 Stepper Motor Driver Carrier, Adjustable Current, Blue Edition
Vendor:POLOLURegular price Rs. 409.00Regular priceUnit price / per -
A5984 Stepper Motor Driver Carrier, Fixed 1A@5V / 660mA@3.3V, Blue Edition (Soldered Header Pins)
Vendor:POLOLURegular price Rs. 489.00Regular priceUnit price / per -
A5984 Stepper Motor Driver Carrier, Fixed 500mA@5V / 330mA@3.3V (Soldered Header Pins)
Vendor:POLOLURegular price Rs. 469.00Regular priceUnit price / per -
T Connector Male-Female Pair
Vendor:POLOLURegular price Rs. 169.00Regular priceUnit price / per -
Pololu Reverse Voltage Protector, 4-60V, 10A
Vendor:POLOLURegular price Rs. 159.00Regular priceUnit price / per -
Pololu Reverse Voltage Protector, 4-60V, 12A
Vendor:POLOLURegular price Rs. 199.00Regular priceUnit price / per -
Pololu Ideal Diode Reverse Voltage Protector, 4-60V, 10A
Vendor:POLOLURegular price Rs. 179.00Regular priceUnit price / perSold out -
Pololu Ideal Diode Reverse Voltage Protector, 4-60V, 12A
Vendor:POLOLURegular price Rs. 229.00Regular priceUnit price / perSold out -
Pololu Mini Plastic Gearmotor Bracket Pair - Tall
Vendor:POLOLURegular price Rs. 599.00Regular priceUnit price / per