EasyNixie
EasyNixie.h
1 #ifndef _EASY_NIXIE
2 #define _EASY_NIXIE
3 #include "Arduino.h"
4 
15 #define EASY_NIXIE_BLUE 1
16 #define EASY_NIXIE_GREEN 2
17 #define EASY_NIXIE_RED 3
18 #define EASY_NIXIE_WHITE 4
19 #define EASY_NIXIE_RuB 5
20 #define EASY_NIXIE_RuG 6
21 #define EASY_NIXIE_BuG 7
25 class EasyNixie{
26  public:
28  uint8_t outputEnable;
30  uint8_t shcp;
32  uint8_t stcp;
34  uint8_t dsin;
35 
42  EasyNixie(uint8_t outputEnable,uint8_t shcp, uint8_t stcp, uint8_t dsin);
43 
56  void SetNixie(uint8_t number,uint8_t color,bool voltage=true,bool comma = false,uint16_t dimming=0);
57 
61  void slowShiftOut(uint8_t dataPin, uint8_t clockPin, uint8_t bitOrder, uint8_t val);
62 
64  void Latch(void);
65 };
66 
67 #endif
68 
The main EasyNixie class.
Definition: EasyNixie.h:25
void Latch(void)
This method 'displays' the digit that you have set using SetNixie, be sure to call it after SetNixie.
Definition: EasyNixie.cpp:51
uint8_t dsin
The microcontroller pin connected to DSIN pin of the EasyNixie.
Definition: EasyNixie.h:34
uint8_t stcp
The microcontroller pin connected to STCP pin of the EasyNixie.
Definition: EasyNixie.h:32
EasyNixie(uint8_t outputEnable, uint8_t shcp, uint8_t stcp, uint8_t dsin)
This constructor takes 4 pin names as arguments, they are labeled OUT_EN, SHCP, STCP and DSIN on your...
Definition: EasyNixie.cpp:3
uint8_t outputEnable
The microcontroller pin connected to OUT_EN pin of the EasyNixie.
Definition: EasyNixie.h:28
void SetNixie(uint8_t number, uint8_t color, bool voltage=true, bool comma=false, uint16_t dimming=0)
Set nixie digit/symbol on your EasyNixie. If you have multiple modules connected 'in series' (EasyNix...
Definition: EasyNixie.cpp:15
uint8_t shcp
The microcontroller pin connected to SHCP pin of the EasyNixie.
Definition: EasyNixie.h:30
void slowShiftOut(uint8_t dataPin, uint8_t clockPin, uint8_t bitOrder, uint8_t val)
This is a custom implementation of ShiftOut function that fits 74HC595 timing specs....
Definition: EasyNixie.cpp:37