summaryrefslogtreecommitdiffstats
path: root/libleds.c
blob: 1e32d90794229bc06bc9017efa6bad9b446f799d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <util/delay.h>
#include "libleds.h"

void led_write_rgb_all(struct led_obj const obj, struct led_color const color)
{
	for (int i = 0; i < obj.width * obj.height; i++) {
		led_write_rgb(obj.port, obj.pins, color);
	}
}

void led_latch(void)
{
	_delay_us(280);
}