Class VS1053

java.lang.Object
jpigpio.devices.VS1053

public class VS1053
extends java.lang.Object
The VS1053 is an audio device accessed via SPI. We will assume that the VS1053 is connected to hardware SPI as normal. Since the pin out of the VS1053 development board is: +------+------+------+------+-----+ | XCS | DREQ | MOSI | DGND | 5V | +------+------+------+------+-----+ | XDCS | XRST | SCK | MISO | 5V | +------+------+------+------+-----+ We will assume: XCS - SPI_CE0 XDCS - SPI_CE1 DREQ - ?? XRST - 5V MOSI - SPI_MOSI SCK - SPI_SCLK DGND - GND MISO - SPI_MISO 5V - 5V
Author:
kolban
  • Constructor Summary

    Constructors 
    Constructor Description
    VS1053​(JPigpio pigpio, int gpioDREQ)  
  • Method Summary

    Modifier and Type Method Description
    void disableMidi()
    The LCtech board contains a design flaw.
    void dump()  
    void endSineTest()
    End the sine test
    java.lang.String format​(int value, java.lang.String type)
    Format a data value into a string.
    int getAudata()  
    int getBass()
    Get the Bass register value.
    int getClockF()
    Read the ClockF register of the device.
    int getMode()
    Retrieve the device mode register value.
    int getStatus()
    Retrieve the status register of the device.
    int getVolume()
    Read the volume register of the device.
    void memoryTest()
    Perform a memory test
    void playFile​(java.io.File file)
    Play a data file through the device.
    void setAudata​(int value)  
    void setClockF​(int value)
    Set the ClockF value.
    void setLine​(boolean value)
    Set the Line vs Mic mode.
    void setMode​(int value)
    Set the device mode register to a supplied value.
    void setTestMode​(boolean mode)
    Enable or disable the test mode of the device.
    void setVolume​(int value)
    A volume value is replicated in the high and low bytes of the volume word
    void softReset()
    Perform a soft reset of the device.
    void startSineTest()
    Perform the sine test
    void waitForReady()
    Wait for the DREQ to signal that the device is ready for more work.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait