trouble with sketch

I've been using the arduino to learn my oscilloscope. I recently came upon a sketch that produces high frequency precision sine wave tones that I'd like to try. However the sketch has a few compile bugs that I can't Figure out. TIA

The code is to big to post here so here is the web site it came from.

http://adrianfreed.com/content/arduino-sketch-high-frequency-precision-sine-wave-tone-sound-synthesis

Please post the full error message

variable 'sintable' must be const in order to be put into read-only section by means of 'attribute((progmem))'

Did you try declaring it as const ?

This is my first attempt at editing a sketch and don't understand coding this advanced yet. how would I do that? basically I can only make an LED blink!

Do some reading about declaring variables in C

A handy page: Arduino Reference - Arduino Reference

There is another simple way to create a Sine way using Arduino. See the example code in this tutorial

IoT_hobbyist:
There is another simple way to create a Sine way using Arduino. See the example code in this tutorial

Thank you. I've already have a sine wave sketch that is extremely accurate at 50khz. The one I was trying to get working does let you create any wave, not just sine.

Hi,
You are compiling the code for an Arduino Mega?

Tom.... :slight_smile:

Yes , I am.