SHARE
TWEET

Untitled

a guest May 27th, 2019 95 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "mbed.h"
  2.  
  3.  
  4. DigitalOut myled(LED1);
  5.  AnalogOut dac(PTE30);
  6.  
  7. //int sin_data[100] ={255 , 255 , 254 , 253 , 251 , 249 , 246 , 243 , 239 , 235 , 231 , 226 , 220 , 215 , 209 , 202 , 196 , 189 , 182 , 174 , 167 , 159 , 151 , 143 , 136 , 127 , 119 , 112 , 104 , 96 , 88 , 81 , 73 , 66 , 59 , 53 , 46 , 40 , 35 , 29 , 24 , 20 , 16 , 12 , 9 , 6 , 4 , 2 , 1 , 0 , 0 , 0 , 1 , 2 , 4 , 6 , 9 , 12 , 16 , 20 , 24 , 29 , 35 , 40 , 46 , 53 , 59 , 66 , 73 , 80 , 88 , 96, 104 , 112 , 119 , 128 , 136 , 143 , 151 , 159 , 167 , 174, 182 , 189 , 196 , 202 , 209 , 215 , 220 , 226 , 231 , 235 , 239 , 243 , 246 , 249 , 251 , 253 , 254 , 255};
  8. //float sq_data[12] = {0.5f,0.75f,0.93f,1.0f,0.93f,0.75f,0.5f,0.25f,0.06f,0.0f,0.06f,0.025};
  9.  
  10. int rawData[1630] = {
  11.     0x7F, 0x7F, 0x80, 0x80, 0x82, 0x82, 0x7E, 0x7E, 0x7D, 0x7C, 0x7C, 0x7B,
  12.     0x73, 0x71, 0x94, 0x97, 0x92, 0x95, 0x91, 0x94, 0x9D, 0xA2, 0x80, 0x80,
  13.     0x9B, 0xA0, 0x90, 0x93, 0x7A, 0x7A, 0x79, 0x79, 0x6D, 0x6A, 0x66, 0x62,
  14.     0x5A, 0x54, 0x5B, 0x55, 0x4F, 0x47, 0x5B, 0x55, 0x66, 0x61, 0x61, 0x5C,
  15.     0x61, 0x5C, 0x6D, 0x6A, 0x84, 0x85, 0x84, 0x85, 0x8D, 0x90, 0x90, 0x93,
  16.     0x81, 0x81, 0x77, 0x75, 0x77, 0x75, 0x7D, 0x7C, 0x7F, 0x7F, 0x85, 0x86,
  17.     0x7B, 0x7A, 0x97, 0x9B, 0xBD, 0xC7, 0xBA, 0xC3, 0xE0, 0xEF, 0xD3, 0xE1,
  18.     0xC1, 0xCB, 0xD9, 0xE8, 0xC9, 0xD4, 0xBC, 0xC6, 0x9F, 0xA4, 0x98, 0x9C,
  19.     0x98, 0x9C, 0x7C, 0x7C, 0x66, 0x62, 0x59, 0x53, 0x55, 0x4F, 0x55, 0x4E,
  20.     0x4B, 0x42, 0x3C, 0x32, 0x51, 0x49, 0x49, 0x40, 0x48, 0x3F, 0x5E, 0x59,
  21.     0x43, 0x39, 0x2B, 0x1D, 0x2C, 0x1E, 0x37, 0x2B, 0x39, 0x2D, 0x49, 0x40,
  22.     0x56, 0x4F, 0x58, 0x51, 0x8B, 0x8D, 0x97, 0x9B, 0xB4, 0xBC, 0xD3, 0xE1,
  23.     0xAA, 0xB1, 0xC7, 0xD2, 0xD0, 0xDD, 0xBE, 0xC7, 0xB6, 0xBF, 0xA5, 0xAB,
  24.     0xBB, 0xC5, 0xB4, 0xBC, 0xA1, 0xA7, 0x9F, 0xA4, 0x8A, 0x8C, 0x7D, 0x7D,
  25.     0x80, 0x80, 0x70, 0x6D, 0x67, 0x63, 0x66, 0x61, 0x53, 0x4C, 0x6A, 0x66,
  26.     0x68, 0x64, 0x41, 0x37, 0x2A, 0x1C, 0x29, 0x1C, 0x2D, 0x20, 0x2C, 0x1E,
  27.     0x49, 0x41, 0x44, 0x3B, 0x5C, 0x56, 0x86, 0x87, 0x8B, 0x8D, 0xB8, 0xC1,
  28.     0xA4, 0xAA, 0x9F, 0xA4, 0xCD, 0xD9, 0xBB, 0xC4, 0xB4, 0xBC, 0xA6, 0xAD,
  29.     0xA9, 0xB0, 0xB6, 0xBF, 0xA6, 0xAC, 0xA8, 0xAF, 0xA4, 0xAA, 0x97, 0x9B,
  30.     0x9B, 0x9F, 0x9D, 0xA2, 0x9A, 0x9E, 0x9F, 0xA4, 0x88, 0x8A, 0x88, 0x89,
  31.     0xA0, 0xA5, 0x87, 0x88, 0x68, 0x64, 0x51, 0x4A, 0x4C, 0x44, 0x43, 0x39,
  32.     0x49, 0x40, 0x4A, 0x42, 0x39, 0x2E, 0x65, 0x61, 0x70, 0x6D, 0x88, 0x89,
  33.     0x9D, 0xA1, 0x71, 0x6F, 0x8C, 0x8E, 0x96, 0x9A, 0x85, 0x86, 0x7A, 0x79,
  34.     0x66, 0x62, 0x7B, 0x7A, 0x77, 0x75, 0x72, 0x70, 0x7C, 0x7C, 0x72, 0x70,
  35.     0x70, 0x6D, 0x78, 0x77, 0x79, 0x78, 0x85, 0x86, 0x89, 0x8A, 0x7F, 0x7F,
  36.     0x9C, 0xA1, 0xA3, 0xA9, 0x8C, 0x8E, 0x73, 0x71, 0x63, 0x5E, 0x62, 0x5D,
  37.     0x60, 0x5B, 0x76, 0x75, 0x64, 0x60, 0x6E, 0x6B, 0x91, 0x94, 0x91, 0x94,
  38.     0xB8, 0xC1, 0x9A, 0x9F, 0x84, 0x84, 0xA1, 0xA7, 0x91, 0x93, 0x87, 0x88,
  39.     0x6F, 0x6C, 0x6E, 0x6B, 0x7A, 0x79, 0x6B, 0x68, 0x72, 0x70, 0x70, 0x6D,
  40.     0x64, 0x5F, 0x6D, 0x6A, 0x74, 0x72, 0x74, 0x72, 0x80, 0x80, 0x79, 0x78,
  41.     0x82, 0x82, 0x9F, 0xA4, 0x9A, 0x9F, 0x86, 0x87, 0x6F, 0x6D, 0x6F, 0x6D,
  42.     0x6C, 0x69, 0x80, 0x81, 0x8A, 0x8C, 0x77, 0x76, 0x9F, 0xA5, 0xA6, 0xAC,
  43.     0xBE, 0xC8, 0xD4, 0xE2, 0xA4, 0xAA, 0xB0, 0xB8, 0xB3, 0xBC, 0xA2, 0xA8,
  44.     0x93, 0x96, 0x75, 0x74, 0x7D, 0x7C, 0x79, 0x78, 0x71, 0x6F, 0x71, 0x6F,
  45.     0x61, 0x5C, 0x59, 0x53, 0x5E, 0x58, 0x59, 0x53, 0x5E, 0x59, 0x62, 0x5D,
  46.     0x55, 0x4E, 0x6A, 0x66, 0x7A, 0x79, 0x70, 0x6E, 0x55, 0x4F, 0x49, 0x40,
  47.     0x4B, 0x43, 0x4E, 0x46, 0x6D, 0x6A, 0x5F, 0x59, 0x6E, 0x6B, 0x93, 0x96,
  48.     0x96, 0x99, 0xC7, 0xD3, 0xB8, 0xC1, 0xA2, 0xA7, 0xBA, 0xC4, 0xB3, 0xBB,
  49.     0xAE, 0xB5, 0x92, 0x95, 0x8A, 0x8B, 0x92, 0x95, 0x88, 0x89, 0x88, 0x89,
  50.     0x82, 0x82, 0x73, 0x71, 0x6F, 0x6D, 0x6E, 0x6C, 0x6B, 0x67, 0x75, 0x73,
  51.     0x6A, 0x66, 0x66, 0x62, 0x7F, 0x7F, 0x82, 0x83, 0x6C, 0x69, 0x51, 0x49,
  52.     0x4F, 0x48, 0x49, 0x41, 0x5D, 0x57, 0x6B, 0x68, 0x59, 0x52, 0x7F, 0x7E,
  53.     0x88, 0x8A, 0xA6, 0xAD, 0xC7, 0xD3, 0xA0, 0xA5, 0xAA, 0xB0, 0xB6, 0xBF,
  54.     0xB4, 0xBD, 0xA7, 0xAD, 0x8E, 0x91, 0x97, 0x9B, 0x98, 0x9C, 0x93, 0x96,
  55.     0x94, 0x97, 0x8B, 0x8D, 0x80, 0x80, 0x83, 0x83, 0x7D, 0x7D, 0x81, 0x81,
  56.     0x86, 0x87, 0x74, 0x73, 0x80, 0x81, 0x91, 0x94, 0x8A, 0x8C, 0x6B, 0x68,
  57.     0x57, 0x51, 0x51, 0x4A, 0x4C, 0x44, 0x68, 0x64, 0x55, 0x4E, 0x57, 0x50,
  58.     0x73, 0x72, 0x74, 0x72, 0xA4, 0xAA, 0x9B, 0xA0, 0x82, 0x83, 0x95, 0x98,
  59.     0x96, 0x9A, 0x96, 0x9A, 0x7C, 0x7C, 0x72, 0x6F, 0x7C, 0x7B, 0x7A, 0x79,
  60.     0x7C, 0x7B, 0x7D, 0x7C, 0x73, 0x71, 0x73, 0x71, 0x77, 0x76, 0x74, 0x73,
  61.     0x83, 0x84, 0x7D, 0x7D, 0x78, 0x77, 0x8E, 0x91, 0x9B, 0xA0, 0x8E, 0x91,
  62.     0x70, 0x6E, 0x6A, 0x67, 0x5D, 0x58, 0x6D, 0x6A, 0x79, 0x78, 0x61, 0x5C,
  63.     0x7D, 0x7C, 0x7F, 0x7F, 0x96, 0x9A, 0xBB, 0xC5, 0x99, 0x9D, 0x97, 0x9B,
  64.     0x9E, 0xA3, 0x9F, 0xA5, 0x94, 0x97, 0x77, 0x76, 0x78, 0x76, 0x7A, 0x79,
  65.     0x79, 0x78, 0x7B, 0x7A, 0x77, 0x76, 0x6E, 0x6B, 0x74, 0x72, 0x71, 0x6F,
  66.     0x78, 0x77, 0x83, 0x84, 0x76, 0x74, 0x80, 0x81, 0x96, 0x9A, 0x9E, 0xA3,
  67.     0x85, 0x86, 0x74, 0x73, 0x6E, 0x6C, 0x65, 0x61, 0x82, 0x83, 0x74, 0x73,
  68.     0x74, 0x73, 0x8C, 0x8E, 0x88, 0x89, 0xB7, 0xC0, 0xB7, 0xC0, 0x9D, 0xA1,
  69.     0xA3, 0xA9, 0xA3, 0xA9, 0xA5, 0xAB, 0x8B, 0x8D, 0x79, 0x77, 0x7A, 0x78,
  70.     0x76, 0x74, 0x73, 0x71, 0x72, 0x6F, 0x65, 0x60, 0x5F, 0x59, 0x60, 0x5B,
  71.     0x59, 0x53, 0x67, 0x63, 0x64, 0x5F, 0x5E, 0x58, 0x70, 0x6D, 0x84, 0x85,
  72.     0x82, 0x82, 0x67, 0x63, 0x63, 0x5F, 0x54, 0x4E, 0x63, 0x5E, 0x75, 0x74,
  73.     0x60, 0x5B, 0x7A, 0x79, 0x7D, 0x7C, 0x93, 0x96, 0xBF, 0xC9, 0xAA, 0xB1,
  74.     0xA7, 0xAD, 0xAA, 0xB1, 0xB1, 0xB9, 0xAB, 0xB2, 0x8F, 0x92, 0x89, 0x8B,
  75.     0x89, 0x8A, 0x86, 0x87, 0x83, 0x84, 0x7C, 0x7C, 0x6E, 0x6B, 0x6E, 0x6B,
  76.     0x66, 0x62, 0x67, 0x64, 0x72, 0x70, 0x65, 0x61, 0x69, 0x65, 0x7C, 0x7C,
  77.     0x8D, 0x90, 0x79, 0x78, 0x68, 0x64, 0x60, 0x5B, 0x54, 0x4D, 0x73, 0x71,
  78.     0x69, 0x65, 0x68, 0x64, 0x80, 0x80, 0x7D, 0x7C, 0xAE, 0xB5, 0xBB, 0xC4,
  79.     0xA9, 0xAF, 0xAD, 0xB4, 0xB0, 0xB8, 0xB9, 0xC2, 0xA3, 0xA9, 0x91, 0x94,
  80.     0x90, 0x92, 0x8D, 0x90, 0x8A, 0x8C, 0x89, 0x8A, 0x7D, 0x7C, 0x74, 0x72,
  81.     0x73, 0x71, 0x69, 0x66, 0x74, 0x72, 0x70, 0x6E, 0x66, 0x62, 0x6F, 0x6C,
  82.     0x83, 0x84, 0x86, 0x87, 0x69, 0x66, 0x62, 0x5D, 0x4C, 0x43, 0x55, 0x4E,
  83.     0x69, 0x65, 0x53, 0x4B, 0x69, 0x65, 0x6A, 0x66, 0x7C, 0x7B, 0xAA, 0xB0,
  84.     0x9D, 0xA1, 0x98, 0x9B, 0x98, 0x9C, 0xA3, 0xA8, 0xA1, 0xA6, 0x88, 0x8A,
  85.     0x81, 0x81, 0x81, 0x81, 0x82, 0x82, 0x82, 0x83, 0x7F, 0x7F, 0x72, 0x71,
  86.     0x74, 0x72, 0x6D, 0x6A, 0x6D, 0x6B, 0x79, 0x78, 0x70, 0x6F, 0x70, 0x6F,
  87.     0x80, 0x80, 0x96, 0x9B, 0x87, 0x88, 0x75, 0x74, 0x6A, 0x66, 0x56, 0x4F,
  88.     0x74, 0x71, 0x6B, 0x67, 0x66, 0x61, 0x79, 0x77, 0x70, 0x6D, 0x9C, 0xA0,
  89.     0xAD, 0xB4, 0x9F, 0xA3, 0x9D, 0xA1, 0x9E, 0xA3, 0xAC, 0xB3, 0x9B, 0x9F,
  90.     0x88, 0x89, 0x84, 0x84, 0x84, 0x84, 0x83, 0x83, 0x82, 0x82, 0x78, 0x77,
  91.     0x71, 0x6F, 0x72, 0x70, 0x68, 0x65, 0x74, 0x73, 0x77, 0x77, 0x70, 0x6F,
  92.     0x77, 0x76, 0x8F, 0x92, 0x9B, 0xA0, 0x83, 0x84, 0x7D, 0x7D, 0x64, 0x5F,
  93.     0x69, 0x65, 0x7E, 0x7D, 0x67, 0x63, 0x7A, 0x79, 0x76, 0x74, 0x81, 0x80,
  94.     0xAD, 0xB4, 0xA7, 0xAD, 0xA0, 0xA5, 0x9A, 0x9E, 0xA4, 0xAA, 0xA5, 0xAB,
  95.     0x8C, 0x8F, 0x7F, 0x7F, 0x79, 0x78, 0x77, 0x76, 0x74, 0x72, 0x71, 0x6E,
  96.     0x63, 0x5E, 0x62, 0x5D, 0x5B, 0x55, 0x59, 0x53, 0x66, 0x62, 0x61, 0x5C,
  97.     0x5E, 0x59, 0x6C, 0x69, 0x89, 0x8B, 0x81, 0x82, 0x73, 0x72, 0x69, 0x66,
  98.     0x53, 0x4C, 0x70, 0x6D, 0x6C, 0x68, 0x68, 0x64, 0x7B, 0x7A, 0x71, 0x6E,
  99.     0x9A, 0x9E, 0xB3, 0xBB, 0xAC, 0xB3, 0xA9, 0xAF, 0xA8, 0xAE, 0xB8, 0xC1,
  100.     0xAB, 0xB2, 0x97, 0x9B, 0x8D, 0x8F, 0x89, 0x8B, 0x86, 0x88, 0x85, 0x86,
  101.     0x7B, 0x7A, 0x70, 0x6D, 0x6F, 0x6C, 0x63, 0x5F, 0x6B, 0x68, 0x70, 0x6D,
  102.     0x67, 0x64, 0x67, 0x63, 0x7D, 0x7D, 0x8F, 0x92, 0x7C, 0x7C, 0x77, 0x76,
  103.     0x5C, 0x56, 0x5C, 0x57, 0x74, 0x72, 0x61, 0x5C, 0x72, 0x70, 0x6F, 0x6D,
  104.     0x79, 0x78, 0xA7, 0xAD, 0xAB, 0xB3, 0xAA, 0xB1, 0xA2, 0xA8, 0xAD, 0xB5,
  105.     0xB5, 0xBE, 0xA1, 0xA8, 0x94, 0x97, 0x8C, 0x8E, 0x8A, 0x8C, 0x88, 0x8A,
  106.     0x86, 0x87, 0x77, 0x76, 0x74, 0x72, 0x6D, 0x69, 0x66, 0x62, 0x72, 0x6F,
  107.     0x6E, 0x6B, 0x67, 0x62, 0x6C, 0x68, 0x88, 0x89, 0x86, 0x86, 0x78, 0x76,
  108.     0x6B, 0x67, 0x4D, 0x44, 0x63, 0x5E, 0x60, 0x5A, 0x5A, 0x53, 0x69, 0x65,
  109.     0x5B, 0x55, 0x7F, 0x7E, 0x9B, 0x9F, 0x9B, 0x9F, 0x97, 0x9A, 0x93, 0x96,
  110.     0xA5, 0xAC, 0x9F, 0xA5, 0x8E, 0x92, 0x83, 0x85, 0x80, 0x81, 0x80, 0x81,
  111.     0x82, 0x82, 0x7B, 0x7C, 0x72, 0x71, 0x74, 0x72, 0x69, 0x66, 0x70, 0x6D,
  112.     0x78, 0x77, 0x73, 0x72, 0x6F, 0x6D, 0x82, 0x82, 0x99, 0x9D, 0x8B, 0x8D,
  113.     0x88, 0x88, 0x6B, 0x67, 0x64, 0x5F, 0x7A, 0x78, 0x69, 0x64, 0x77, 0x75,
  114.     0x71, 0x6F, 0x73, 0x70, 0x9C, 0xA0, 0xA7, 0xAD, 0xA7, 0xAD, 0x9C, 0x9F,
  115.     0xA3, 0xA8, 0xAD, 0xB4, 0x9E, 0xA3, 0x8E, 0x90, 0x83, 0x84, 0x80, 0x81,
  116.     0x7F, 0x7F, 0x7E, 0x7E, 0x72, 0x71, 0x70, 0x6E, 0x6A, 0x68, 0x63, 0x5F,
  117.     0x6F, 0x6D, 0x70, 0x6F, 0x6A, 0x68, 0x6B, 0x69, 0x89, 0x8B, 0x8F, 0x92,
  118.     0x87, 0x89, 0x7E, 0x7E, 0x5E, 0x59, 0x71, 0x6F, 0x71, 0x6F, 0x6C, 0x69,
  119.     0x7B, 0x7A, 0x6B, 0x67, 0x85, 0x86, 0xA3, 0xA8, 0xA9, 0xB0, 0xA4, 0xA9,
  120.     0x9B, 0x9E, 0xAA, 0xB0, 0xA7, 0xAC, 0x96, 0x99, 0x86, 0x86, 0x7E, 0x7D,
  121.     0x7A, 0x79, 0x7A, 0x78, 0x73, 0x71, 0x68, 0x64, 0x67, 0x63, 0x5B, 0x55,
  122.     0x5C, 0x56, 0x65, 0x61, 0x63, 0x5F, 0x5B, 0x56, 0x6A, 0x67, 0x85, 0x87,
  123.     0x7F, 0x7F, 0x80, 0x80, 0x66, 0x62, 0x5B, 0x56, 0x71, 0x6F, 0x64, 0x60,
  124.     0x73, 0x72, 0x70, 0x6F, 0x6E, 0x6C, 0x95, 0x98, 0xA8, 0xAF, 0xAF, 0xB7,
  125.     0xA5, 0xAA, 0xAA, 0xB0, 0xB8, 0xC0, 0xAE, 0xB5, 0x9F, 0xA3, 0x93, 0x95,
  126.     0x8E, 0x90, 0x8C, 0x8D, 0x8C, 0x8C, 0x7F, 0x7E, 0x7A, 0x78, 0x73, 0x70,
  127.     0x68, 0x63, 0x6E, 0x6A, 0x72, 0x6F, 0x6B, 0x68, 0x65, 0x61, 0x80, 0x7F,
  128.     0x89, 0x8A, 0x84, 0x85, 0x7E, 0x7D, 0x5A, 0x55, 0x67, 0x64, 0x69, 0x66,
  129.     0x64, 0x61, 0x73, 0x72, 0x62, 0x5F, 0x76, 0x76, 0x95, 0x9A, 0xA3, 0xAA,
  130.     0xA2, 0xA8, 0x99, 0x9E, 0xA8, 0xAF, 0xAC, 0xB4, 0xA0, 0xA6, 0x92, 0x95,
  131.     0x8A, 0x8D, 0x87, 0x89, 0x88, 0x89, 0x83, 0x84, 0x79, 0x77, 0x78, 0x76,
  132.     0x6C, 0x68, 0x69, 0x65, 0x70, 0x6D, 0x71, 0x6E, 0x66, 0x61, 0x6D, 0x6A,
  133.     0x87, 0x87, 0x83, 0x83, 0x87, 0x87, 0x6C, 0x68, 0x5A, 0x54, 0x6B, 0x68,
  134.     0x5D, 0x58, 0x69, 0x67, 0x66, 0x63, 0x5E, 0x5A, 0x7D, 0x7D, 0x93, 0x96,
  135.     0x9E, 0xA3, 0x93, 0x97, 0x95, 0x99, 0xA4, 0xAA, 0xA1, 0xA7, 0x94, 0x97,
  136.     0x88, 0x89, 0x83, 0x84, 0x82, 0x82, 0x85, 0x85, 0x7B, 0x7A, 0x78, 0x76,
  137.     0x74, 0x72, 0x6B, 0x67, 0x70, 0x6B, 0x77, 0x75, 0x74, 0x71, 0x6B, 0x67,
  138.     0x84, 0x83, 0x90, 0x92, 0x91, 0x93, 0x8E, 0x90, 0x6B, 0x67, 0x72, 0x70,
  139.     0x73, 0x71, 0x6D, 0x6A, 0x7B, 0x7B, 0x6A, 0x68, 0x75, 0x74, 0x90, 0x94,
  140.     0xA3, 0xAA, 0xA4, 0xAB, 0x98, 0x9D, 0xA2, 0xA9, 0xAA, 0xB2, 0xA1, 0xA8,
  141.     0x91, 0x95, 0x88, 0x8A, 0x81, 0x83, 0x82, 0x84, 0x7F, 0x7F, 0x74, 0x73,
  142.     0x73, 0x71, 0x69, 0x65, 0x64, 0x5F, 0x6B, 0x65, 0x70, 0x6D, 0x64, 0x5F,
  143.     0x69, 0x64, 0x83, 0x83, 0x84, 0x84, 0x8D, 0x8F, 0x77, 0x75, 0x62, 0x5D,
  144.     0x71, 0x6E, 0x65, 0x61, 0x71, 0x6F, 0x71, 0x6F, 0x65, 0x62, 0x7C, 0x7D,
  145.     0x95, 0x99, 0xA6, 0xAB, 0x9C, 0xA0, 0x9A, 0x9E, 0xA7, 0xAD, 0xA9, 0xAF,
  146.     0x9B, 0x9F, 0x8E, 0x90, 0x85, 0x86, 0x81, 0x82, 0x83, 0x83
  147. };
  148.  
  149. float float_data[1630] = {};
  150.  
  151. int main() {
  152.    
  153.     for (int i = 0; i <= 1629; i++)
  154.     {
  155.         float_data[i] = (float)(rawData[i])/255;
  156.     }
  157.    
  158.     while(1) {  
  159.        for (int i=0; i<=11;i+=1){
  160.             dac=sq_data[i];
  161.             wait_us(125);
  162.         }    
  163.     }
  164. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top