Skip to content

mruby-esp32/mruby-esp32-spi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mruby-esp32-spi

SPI library for mruby-esp32.

Installation

You need esp-idf v5.0 to use this mrbgems.

Add the line below to your build_config.rb:

  conf.gem :github => 'mruby-esp32/mruby-esp32-spi'

Examples

spi = SPI.new
s = spi.transfer([0x30, 0x20], 1)

spi = SPI.new(unit: 1, mode: 0, frequency:10_000_000, first_bit: SPI::MSB_FIRST)
spi.setmode(unit: 1, mode: 0, frequency:10_000_000, first_bit: SPI::MSB_FIRST)

# NOT IMPLEMENTED
spi.write(0x30, 0x20, 0x00)
spi.write("\x30\xa2")
spi.write(0x30)

# NOT IMPLEMENTED
data = spi.read( 32 )

LICENSE

MIT License.

About

SPI library for mruby-esp32

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy