~toykeeper/flashlight-firmware/trunk

« back to all changes in this revision

Viewing changes to ToyKeeper/tk-calibration.h

  • Committer: Selene ToyKeeper
  • Date: 2023-04-17 06:08:32 UTC
  • mto: (188.22.175 anduril2)
  • mto: This revision was merged to the branch mainline in revision 250.
  • Revision ID: bzr@toykeeper.net-20230417060832-m50gul6mz47puwbp
switched the rest of FSM + Anduril to use SPDX license headers
instead of full GPL headers (or all too often, nothing at all)

There are a few "FIXME" entries where I'm not sure about the correct copyright.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef TK_CALIBRATION_H
2
 
#define TK_CALIBRATION_H
3
 
/*
4
 
 * Attiny calibration header.
5
 
 * This allows using a single set of hardcoded values across multiple projects.
6
 
 *
7
 
 * Copyright (C) 2015 Selene Scriven
8
 
 *
9
 
 * This program is free software: you can redistribute it and/or modify
10
 
 * it under the terms of the GNU General Public License as published by
11
 
 * the Free Software Foundation, either version 3 of the License, or
12
 
 * (at your option) any later version.
13
 
 *
14
 
 * This program is distributed in the hope that it will be useful,
15
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
 
 * GNU General Public License for more details.
18
 
 *
19
 
 * You should have received a copy of the GNU General Public License
20
 
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
21
 
 *
22
 
 */
 
1
// tk-calibration.h: Attiny calibration header.
 
2
// Copyright (C) 2015-2023 Selene ToyKeeper
 
3
// SPDX-License-Identifier: GPL-3.0-or-later
 
4
#pragma once
 
5
 
 
6
// This allows using a single set of hardcoded values across multiple projects.
23
7
 
24
8
/********************** Voltage ADC calibration **************************/
25
9
// These values were measured using RMM's FET+7135.
78
62
#define CAP_SHORT           115
79
63
#endif
80
64
 
81
 
 
82
 
#endif  // TK_CALIBRATION_H