Rev 9 | Rev 13 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 9 | Rev 10 | ||
|---|---|---|---|
| Line 329... | Line 329... | ||
| 329 | ap_init(); // set up the approximate math library |
329 | ap_init(); // set up the approximate math library |
| 330 | 330 | ||
| 331 | int disp; |
331 | int disp; |
| 332 | 332 | ||
| 333 | ssd1306_begin(1, 0); |
333 | ssd1306_begin(1, 0); |
| 334 | // static const int xp = 128 - 42; |
334 | dial_origin(64, 60); |
| - | 335 | dial_size(60); |
|
| - | 336 | ||
| - | 337 | ||
| 335 | for (disp = 0; disp < 2; disp++) |
338 | for (disp = 0; disp < 2; disp++) |
| 336 | { |
339 | { |
| 337 | select_display(disp); |
340 | select_display(disp); |
| 338 | clearDisplay(); |
341 | clearDisplay(); |
| 339 | dim(0); |
342 | dim(0); |
| 340 | //font_puts( |
343 | //font_puts( |
| 341 | // "Hello world !!\rThis text is a test of the text rendering library in a 5*7 font"); |
344 | // "Hello world !!\rThis text is a test of the text rendering library in a 5*7 font"); |
| 342 | 345 | ||
| 343 | dial_origin(64, 60); |
- | |
| 344 | dial_size(60); |
- | |
| 345 | dial_draw_scale(0, 10, 12, 5); |
346 | dial_draw_scale(0, 10, 12, 5); |
| - | 347 | char buffer[] = "Display "; |
|
| - | 348 | buffer[8] = disp+'1'; |
|
| - | 349 | print_large_string(buffer, 20,30, 9); |
|
| 346 | 350 | ||
| 347 | display(); |
351 | display(); |
| 348 | 352 | ||
| 349 | } |
353 | } |
| - | 354 | ||
| - | 355 | ||
| 350 | InitSwitches(); |
356 | InitSwitches(); |
| 351 | 357 | ||
| 352 | /* USER CODE END 2 */ |
358 | /* USER CODE END 2 */ |
| 353 | 359 | ||
| 354 | /* Infinite loop */ |
360 | /* Infinite loop */ |