2021-05-21 08:10:29 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								# EleksTube IPS Clock usermod
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								This usermod allows WLED to run on the EleksTube IPS clock.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								It enables running all WLED effects on the background SK6812 lighting, while displaying digit bitmaps on the 6 IPS screens.
							 
						 
					
						
							
								
									
										
										
										
											2021-05-21 13:19:18 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Code is largely based on https://github.com/SmittyHalibut/EleksTubeHAX by Mark Smith!
							 
						 
					
						
							
								
									
										
										
										
											2021-05-21 08:10:29 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Supported:
							 
						 
					
						
							
								
									
										
										
										
											2022-03-06 21:24:24 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								-  Display with custom bitmaps (.bmp) or raw RGB565 images (.bin) from filesystem 
						 
					
						
							
								
									
										
										
										
											2021-05-21 08:10:29 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								-  Background lighting 
						 
					
						
							
								
									
										
										
										
											2022-03-06 21:24:24 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								-  All 4 hardware buttons 
						 
					
						
							
								
									
										
										
										
											2021-05-21 08:10:29 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								-  RTC (with RTC usermod) 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								-  Standard WLED time features (NTP, DST, timezones) 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Not supported:
							 
						 
					
						
							
								
									
										
										
										
											2022-03-06 21:24:24 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								-  On-device setup with buttons (WiFi setup only) 
						 
					
						
							
								
									
										
										
										
											2021-05-21 08:10:29 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-03-06 21:24:24 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Your images must be 1-135 pixels wide and 1-240 pixels high.
							 
						 
					
						
							
								
									
										
										
										
											2022-12-10 15:12:55 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								BMP 1, 4, 8, and 24 bits per pixel formats are supported.
							 
						 
					
						
							
								
									
										
										
										
											2021-06-09 10:57:16 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-05-21 08:10:29 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								## Installation 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Compile and upload to clock using the `elekstube_ips`  PlatformIO environment
							 
						 
					
						
							
								
									
										
										
										
											2021-06-09 10:57:16 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Once uploaded (the clock can be flashed like any ESP32 module), go to `[WLED-IP]/edit`  and upload the 0-9.bin files from [here ](https://github.com/Aircoookie/NixieThemes/tree/master/themes/RealisticNixie/bin ).
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								You can find more clockfaces in the [NixieThemes ](https://github.com/Aircoookie/NixieThemes/ ) repo.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Use LED pin 12, relay pin 27 and button pin 34.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								## Use of RGB565 images
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-12-10 15:12:55 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Binary 16-bit per pixel RGB565 format `.bin`  and `.clk`  images are now supported. This has the benefit of using only 2/3rds of the file space a 24 BPP `.bmp`  occupies.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								The drawback is this format cannot be handled by common image programs and an extra conversion step is needed.
							 
						 
					
						
							
								
									
										
										
										
											2022-03-06 21:24:24 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								You can use https://lvgl.io/tools/imageconverter to convert your .bmp to a .bin file (settings `True color`  and `Binary RGB565` ).  
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Thank you to @RedNax67  for adding .bin and .clk support.  
							 
						 
					
						
							
								
									
										
										
										
											2022-12-10 15:12:55 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								For most clockface designs, using 4 or 8 BPP BMP format will reduce file size even more:
							 
						 
					
						
							
								
									
										
										
										
											2022-03-06 21:24:24 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								| Bits per pixel | File size in kB (for 135x240 img) | % of 24 BPP BMP | Max unique colors
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								| --- | --- | --- | --- |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								24 | 98 | 100% | 16M (66K)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								16 (.clk) | 64.8 | 66% | 66K
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								8 | 33.7 | 34% | 256
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								4 | 16.4 | 17% | 16
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								1 | 4.9 | 5% | 2
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Comparison 1 vs. 4 vs. 8 vs. 24 BPP. With this clockface on the actual clock, 4 bit looks good, and 8 bit is almost indistinguishable from 24 bit.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-12-10 15:12:55 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								