@@ -493,13 +493,58 @@ void Adafruit_SSD1306::Transaction::data(uint8_t byte) { send(false, byte); }
493
493
/* !
494
494
@brief Issue a single low-level command directly to the SSD1306
495
495
display, bypassing the library.
496
- @param c
496
+ @param cmd
497
+ Command to issue (0x00 to 0xFF, see datasheet).
498
+ @return None (void).
499
+ */
500
+ void Adafruit_SSD1306::ssd1306_command (uint8_t cmd) {
501
+ Transaction trans (*this );
502
+ trans.command (cmd);
503
+ }
504
+
505
+ /* !
506
+ @brief Issue a two byte low-level command directly to the SSD1306
507
+ display, bypassing the library.
508
+ @param cmd
509
+ Command to issue (0x00 to 0xFF, see datasheet).
510
+ @param a
511
+ The second byte of the command.
512
+ @return None (void).
513
+ */
514
+ void Adafruit_SSD1306::ssd1306_command (uint8_t cmd, uint8_t a) {
515
+ Transaction trans (*this );
516
+ trans.command (cmd, a);
517
+ }
518
+
519
+ /* !
520
+ @brief Issue a three byte low-level command directly to the SSD1306
521
+ display, bypassing the library.
522
+ @param cmd
497
523
Command to issue (0x00 to 0xFF, see datasheet).
524
+ @param a
525
+ The second byte of the command.
526
+ @param b
527
+ The third byte of the command.
528
+ @return None (void).
529
+ */
530
+ void Adafruit_SSD1306::ssd1306_command (uint8_t cmd, uint8_t a, uint8_t b) {
531
+ Transaction trans (*this );
532
+ trans.command (cmd, a, b);
533
+ }
534
+
535
+ /* !
536
+ @brief Issue a multi byte low-level command directly to the SSD1306
537
+ display, bypassing the library.
538
+ @param cmd
539
+ Pointer to command bytes to issue.
540
+ @param n
541
+ Number of bytes in the command.
498
542
@return None (void).
499
543
*/
500
- void Adafruit_SSD1306::ssd1306_command (uint8_t c ) {
544
+ void Adafruit_SSD1306::ssd1306_command (const uint8_t *cmd, uint8_t n ) {
501
545
Transaction trans (*this );
502
- trans.command (c);
546
+ while (n--)
547
+ trans.command (pgm_read_byte (cmd++));
503
548
}
504
549
505
550
// ALLOCATE & INIT DISPLAY -------------------------------------------------
0 commit comments