Login
|
Register
Home
Parallax.com
Quick Links
Contact Us
Forums
Support
Register
Login
This object is provided under license. By downloading this object, you are agreeing to the terms of the
MIT License
.
Airoha AR1010 driver & demo
Simple AR1010 I2C driver. Can set volume and frequency. Based on Basic_I2C_Driver.
Version:
0.9
Type:
Object
Attributes:
Author:
Nikita Kareev
Categories:
Speech & Sound
Downloads:
384
Last Updated:
2009-06-14
User Reviews:
Download Reviews
Comments on this Object:
Download Comments
[2010-11-22 06:55:06] Anonymous
said:
There is an error on the setVolume method. Here is the corrected version. Else, working A1! PUB SetVolume(vol) | regData vol := 0 #> vol <# 21 Mute(true) Regs[3] := ReadReg(3) Regs[14] := ReadReg(14) Regs[3] := (Regs[3] & $F87F) | (AR1010Vol1[vol] << 7) WriteReg(3, Regs[3]) Regs[14] := (Regs[14] & $0FFF)| (AR1010Vol2[vol] << 12) WriteReg(14, Regs[14]) Mute(false)
Reply
Post a comment:
comment:
Please contact
obex.support@parallax.com
with comments or questions.
Copyright 2011 by Parallax, Inc.
There is an error on the setVolume method. Here is the corrected version. Else, working A1! PUB SetVolume(vol) | regData vol := 0 #> vol <# 21 Mute(true) Regs[3] := ReadReg(3) Regs[14] := ReadReg(14) Regs[3] := (Regs[3] & $F87F) | (AR1010Vol1[vol] << 7) WriteReg(3, Regs[3]) Regs[14] := (Regs[14] & $0FFF)| (AR1010Vol2[vol] << 12) WriteReg(14, Regs[14]) Mute(false) Reply