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