1 2 3 4 5 6 7 8 9 10 11 12
#ifndef RESISTOR_COLOR_H #define RESISTOR_COLOR_H typedef enum { BLACK, BROWN, RED, ORANGE, YELLOW, GREEN, BLUE, VIOLET, GREY, WHITE } resistor_band_t; int color_code(resistor_band_t); const resistor_band_t* colors(void); #endif