Source

vectorscope / vector.h

Diff from to
 
 #include <stdint.h>
 
+
+static inline void
+vector_x(
+	uint8_t x
+)
+{
+	PORTB = x;
+}
+
+static  inline void
+vector_y(
+	uint8_t y
+)
+{
+	PORTD = y;
+}
+
+
+static inline void
+vector_init(void)
+{
+	DDRD = 0xFF;
+	DDRB = 0xFF;
+	vector_x(128);
+	vector_y(128);
+}
+
+
 void
 line_vert(
 	uint8_t x0,