Arduino Zero Projects Book by Yury Magda

Arduino Zero Projects Book by Yury Magda

Author:Yury Magda [Magda, Yury]
Language: eng
Format: azw3
Publisher: Yury Magda
Published: 2016-02-08T16:00:00+00:00

Listing 21.

#include "Wire.h"

// Touch.Pot parameters

int i2cAddr = 8; // Direct access at i2cAddr, indirect registers at i2cAddr+1

uint8_t prevValue;

uint8_t curValue;

unsigned long initFreq = 500; // initial frequency of AD9850 = 500 Hz

const long K = 50;

unsigned long Freq;

// AD9850 parameters

const int W_CLK = 8;

const int FQ_UD = 9;

const int DAT = 10;

unsigned long freqWord;

unsigned long mask = 0x1;

unsigned long tmp;

int wcnt;

void setup() {

// put your setup code here, to run once:


Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.