Skip to content

Commit

Permalink
Update bcm2835 C library
Browse files Browse the repository at this point in the history
  • Loading branch information
antiprism committed Feb 26, 2020
1 parent 410fcba commit d964414
Show file tree
Hide file tree
Showing 4 changed files with 3,201 additions and 1,471 deletions.
5 changes: 3 additions & 2 deletions ArduiPi_OLED.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -367,10 +367,11 @@ boolean ArduiPi_OLED::init(int8_t DC, int8_t RST, int8_t CS, uint8_t OLED_TYPE)
return false;

// Init & Configure Raspberry PI SPI
bcm2835_spi_begin(cs);
bcm2835_spi_begin();
bcm2835_spi_setBitOrder(BCM2835_SPI_BIT_ORDER_MSBFIRST);
bcm2835_spi_setDataMode(BCM2835_SPI_MODE0);

bcm2835_spi_chipSelect(cs);

// 16 MHz SPI bus, but Worked at 62 MHz also
bcm2835_spi_setClockDivider(BCM2835_SPI_CLOCK_DIVIDER_16);

Expand Down

1 comment on commit d964414

@antiprism
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Closes #14
Closes #33

Please sign in to comment.