Subversion Repositories libOLED

Rev

Rev 4 | Rev 8 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4 Rev 5
Line 34... Line 34...
34
    return 0;
34
    return 0;
35
 
35
 
36
  c = c & 0x7F;
36
  c = c & 0x7F;
37
  if (c < ' ')
37
  if (c < ' ')
38
    c = ' ';
38
    c = ' ';
39
  if (c >= m_chars)
39
  if (c >= m_chars+' ')
40
    c = ' ';
40
    c = ' ';
41
 
41
 
42
  int xm = x + (c - 32) * m_width;
42
  int xm = x + (c - ' ') * m_width;
43
  int index = (y * m_width * m_chars + xm) / 8;
43
  int index = (y * m_width * m_chars + xm) / 8;
44
  return ((m_data[index]) >> (xm & 7)) & 1;
44
  return ((m_data[index]) >> (xm & 7)) & 1;
45
 
45
 
46
}
46
}
47
 
47
 
Line 142... Line 142...
142
      0x41, 0x41, 0x36, 0x08, 0x00,   //  0x7d 125
142
      0x41, 0x41, 0x36, 0x08, 0x00,   //  0x7d 125
143
      0x08, 0x0c, 0x08, 0x18, 0x08,   // ~ 0x7e 126
143
      0x08, 0x0c, 0x08, 0x18, 0x08,   // ~ 0x7e 126
144
      0x55, 0x2A, 0x55, 0x2A, 0x55,   //  0x7F 127
144
      0x55, 0x2A, 0x55, 0x2A, 0x55,   //  0x7F 127
145
      0x00, 0x06, 0x09, 0x06, 0x00, // 0x80 (remapped in code) a ° sign
145
      0x00, 0x06, 0x09, 0x06, 0x00, // 0x80 (remapped in code) a ° sign
146
146
    };
147
-
 
-
 
147
#if defined(USE_OLD_FONT)#else#endif
148
148
 
149
149
 
150
150
font5x7_t small_font (font5x7_data);
151
151
 
152
152
font10x18_t large_font (font10x18_data);
Line 325... Line 325...
325
325
326
326
327
327
328
328
329
329
-
 
330
-
 
331
-
 
332
-
 
333
-
 
334
-
 
335
-
 
336
-
 
337
-
 
338
-
 
339
-
 
340
-
 
341
-
 
342
-
 
343
-
 
344
-
 
345
-
 
346
-
 
347
-
 
348
-
 
349
-
 
350
-
 
351
-
 
352
-
 
353
-
 
354
-
 
355
-
 
356
-
 
357
-
 
358
-
 
359
-
 
360
-
 
361
-
 
362
-
 
363
-
 
364
-
 
365
-
 
366
-
 
367
-
 
368
-
 
369
-
 
370
-
 
371
-
 
372
-
 
373
-
 
374
-
 
375
-
 
376
-
 
377
-
 
378
-
 
379
-
 
380
-
 
381
-
 
382
-
 
383
-
 
384
-
 
385
-
 
386
-
 
387
-
 
388
-
 
389
-
 
390
-
 
391
-
 
392
-
 
393
-
 
394
-
 
395
-
 
396
-
 
397
-
 
398
-
 
399
-
 
400
-
 
401
-
 
402
-
 
403
-
 
404
-
 
405
-
 
406
-
 
407
-
 
408
-
 
409
-
 
410
-
 
411
-
 
412
-
 
413
-
 
414
-
 
415
-
 
416
-
 
417
-
 
418
-
 
419
-
 
420
-
 
421
-
 
422
-
 
423
-
 
424
-
 
425
-
 
426
-
 
427
-
 
428
-
 
429
-
 
430
-
 
431
-
 
432
-
 
433
-
 
434
-
 
435
-
 
436
-
 
437
-
 
438
-
 
439
-
 
440
-
 
441
-
 
442
-
 
443
-
 
444
-
 
445
-
 
446
-
 
447
-
 
448
-
 
449
-
 
450
-
 
451
-
 
452
-
 
453
-
 
454
-
 
455
-
 
456
-
 
457
-
 
458
-
 
459
-
 
460
-
 
461
-
 
462
-
 
463
-
 
464
-
 
465
-
 
466
-
 
467
-
 
468
-
 
469
-
 
470
-
 
471
-
 
472
-
 
473
-
 
474
-
 
475
-
 
476
-
 
477
-
 
478
-
 
479
-
 
480
-
 
481
-
 
482
-
 
483
-
 
484
-
 
485
-
 
486
-
 
487
-
 
488
-
 
489
-
 
490
-
 
491
-
 
492
-
 
493
-
 
494
-
 
495
-
 
496
-
 
497
-
 
498
-
 
499
-
 
500
-
 
501
-
 
502
-
 
503
-
 
504
-
 
505
-
 
506
-
 
507
-
 
508
-
 
509
-
 
510
-
 
511
-
 
512
-
 
513
-
 
514
330
515
331
516
332
517