int main() { int numpoints = 36; array double x[numpoints],y[numpoints]; lindata(0,360,x,36); y = sin(x*M_PI/180); plotxy(x,y,"Ch plot","xlabel","ylabel"); }
/* should make the device settable */ int spiral_demo(int i2c_fd) { int i; unsigned char display_buffer[DISPLAY_LINES]; while(1) { for(i=0;i<DISPLAY_LINES;i++) display_buffer[i]=0; i=0; while(spiral_coords[i].x!=-1) { usleep(50000); plotxy(display_buffer,spiral_coords[i].x, spiral_coords[i].y); update_8x8_display_rotated(i2c_fd,HT16K33_ADDRESS0, display_buffer,0,BROKEN); i++; } usleep(500000); } return 0; }