/*********************************************************************** * Copyright (C) 2021 Prosource (CLI Systems LLC) * https://prosource.dev * * License: * THIS SOURCE CODE IS PART OF THE prosource.dev EMBEDDED SYSTEM * KNOWLEDGE-BASE. This source code is a Free Solution as defined * in the Prosource Usage License and is provided under the * Creative Commons Attribution 4.0 International (CC BY 4.0) license * as defined at https://creativecommons.org/licenses/by/4.0/ * * This source code and all software distributed under the License are * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER * EXPRESS OR IMPLIED * ***********************************************************************/ #ifndef __BREATING_LUT__ #define __BREATING_LUT__ #include #define BREATHING_LUT_SIZE 255 #define breathing_float(x) ( (((float)breathing_LUT[x])*100) /255 ) uint8_t breathing_LUT[] = { 254, 254, 254, 253, 253, 252, 251, 250, 249, 247, 246, 244, 242, 241, 239, 236, 234, 232, 229, 227, 224, 221, 219, 216, 213, 210, 207, 204, 200, 197, 194, 191, 187, 184, 181, 177, 174, 171, 167, 164, 161, 157, 154, 151, 148, 144, 141, 138, 135, 132, 129, 126, 123, 120, 117, 114, 112, 109, 106, 104, 101, 99, 96, 94, 92, 89, 87, 85, 83, 81, 79, 77, 75, 74, 72, 70, 69, 67, 65, 64, 62, 61, 60, 58, 57, 56, 55, 54, 53, 52, 50, 50, 49, 48, 47, 46, 45, 44, 44, 43, 42, 42, 41, 41, 40, 39, 39, 38, 38, 38, 37, 37, 36, 36, 36, 36, 35, 35, 35, 35, 35, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 36, 36, 36, 37, 37, 37, 38, 38, 39, 39, 40, 40, 41, 41, 42, 43, 43, 44, 45, 46, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 58, 59, 60, 62, 63, 65, 66, 68, 69, 71, 73, 74, 76, 78, 80, 82, 84, 86, 88, 90, 93, 95, 97, 100, 102, 105, 107, 110, 113, 115, 118, 121, 124, 127, 130, 133, 136, 139, 142, 146, 149, 152, 155, 159, 162, 165, 169, 172, 175, 179, 182, 185, 189, 192, 195, 199, 202, 205, 208, 211, 214, 217, 220, 223, 225, 228, 230, 233, 235, 237, 239, 241, 243, 245, 247, 248, 249, 250, 251, 252, 253, 254, 254, 254, 255 }; #endif