Git Product home page Git Product logo

tools's Introduction

tools

IQaudIO useful tools / sample code etc.

Compilation instructions are in each file's header.

Precompiled versions also included.

Content

To check that utilities that change volume are working as expected please open another window and launch alsamixer. Check that the mixer control's volume is changing when rotating the rotary encoder or pressing the up/down buttons of your IR handset.

IQ_rot - Rotary Encoder volume control

Adjusts ALSA volume (based on Left channel value) up or down to correspond with rotary encoder direction.

$ sudo IQ_rot &

IQ_ir - IR Volume control Sample app

Adjusts ALSA volume (based on Left channel value) up or down to correspond with IR inputs for KEY_VOLUMEUP and KEY_VOLUMEDOWN, also takes KEY_MUTE input.

  • assumes IQAUDIO.COM Pi-DAC volume range -103dB to 4dB
  • USES Raspberry Pi GPIO 25
$ sudo IQ_ir &

cosmiccontroller.py - Support script for the IQaudIO Pi-CosmicController board.

Adjust ALSA volume by means of rotary encoder

Control system via rotary encoder button press

  • click -> toggle mute state
  • hold -> shutdown the pi

Supports 3 additional press buttons Supports 3 additional LEDs (by default pressing one of the 3 button's iluminates that button's LED)

NOTE: OLED Support for CosmicController here: https://github.com/iqaudio/pyMOD-OLED

ButtonPress.py - Reboot/halt button

Key press detect code, uses gpio 27 and ground to a momentary switch. If pressed for more than 1sec but (less than 5) it will force a reboot. If pressed for more than 5 seconds it will force a shutdown

IQSetupMix.c - Set 2vRMS output

Sample code to set the IQaudio mixer settings correctly for 2vRMS output. Also sets GPIO22 to unmute the AMP+ or DigiAMP+ if being used.

tools's People

Contributors

brunetton avatar jepperc avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.