├── .github └── FUNDING.yml ├── DOCS ├── SCHEMATIC │ ├── vario_bb.jpg │ └── variometer.fzz └── vario_state.png ├── LICENSE ├── MEDIAS └── vario_banner.png ├── README.md ├── TESTS └── TFT9225_test │ ├── .gitignore │ ├── .vscode │ └── extensions.json │ ├── include │ └── README │ ├── lib │ └── README │ ├── platformio.ini │ ├── src │ └── main.cpp │ └── test │ └── README ├── docs ├── _config.yml └── index.md └── vario ├── .gitignore ├── .vscode └── extensions.json ├── include ├── README ├── barometer.h ├── display.h └── main.h ├── lib └── README ├── platformio.ini ├── src ├── barometer.cpp ├── display.cpp └── main.cpp └── test └── README /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: mreliptik 4 | custom: ["https://www.paypal.com/paypalme/VictorMeunierr", "https://www.buymeacoffee.com/mreliptik"] 5 | -------------------------------------------------------------------------------- /DOCS/SCHEMATIC/vario_bb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrEliptik/variometer/ea23105ba12d2e06f08678ae627fc11f55bd4ad4/DOCS/SCHEMATIC/vario_bb.jpg -------------------------------------------------------------------------------- /DOCS/SCHEMATIC/variometer.fzz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrEliptik/variometer/ea23105ba12d2e06f08678ae627fc11f55bd4ad4/DOCS/SCHEMATIC/variometer.fzz -------------------------------------------------------------------------------- /DOCS/vario_state.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrEliptik/variometer/ea23105ba12d2e06f08678ae627fc11f55bd4ad4/DOCS/vario_state.png -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU AFFERO GENERAL PUBLIC LICENSE 2 | Version 3, 19 November 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU Affero General Public License is a free, copyleft license for 11 | software and other kinds of works, specifically designed to ensure 12 | cooperation with the community in the case of network server software. 13 | 14 | The licenses for most software and other practical works are designed 15 | to take away your freedom to share and change the works. By contrast, 16 | our General Public Licenses are intended to guarantee your freedom to 17 | share and change all versions of a program--to make sure it remains free 18 | software for all its users. 19 | 20 | When we speak of free software, we are referring to freedom, not 21 | price. Our General Public Licenses are designed to make sure that you 22 | have the freedom to distribute copies of free software (and charge for 23 | them if you wish), that you receive source code or can get it if you 24 | want it, that you can change the software or use pieces of it in new 25 | free programs, and that you know you can do these things. 26 | 27 | Developers that use our General Public Licenses protect your rights 28 | with two steps: (1) assert copyright on the software, and (2) offer 29 | you this License which gives you legal permission to copy, distribute 30 | and/or modify the software. 31 | 32 | A secondary benefit of defending all users' freedom is that 33 | improvements made in alternate versions of the program, if they 34 | receive widespread use, become available for other developers to 35 | incorporate. Many developers of free software are heartened and 36 | encouraged by the resulting cooperation. However, in the case of 37 | software used on network servers, this result may fail to come about. 38 | The GNU General Public License permits making a modified version and 39 | letting the public access it on a server without ever releasing its 40 | source code to the public. 41 | 42 | The GNU Affero General Public License is designed specifically to 43 | ensure that, in such cases, the modified source code becomes available 44 | to the community. It requires the operator of a network server to 45 | provide the source code of the modified version running there to the 46 | users of that server. Therefore, public use of a modified version, on 47 | a publicly accessible server, gives the public access to the source 48 | code of the modified version. 49 | 50 | An older license, called the Affero General Public License and 51 | published by Affero, was designed to accomplish similar goals. This is 52 | a different license, not a version of the Affero GPL, but Affero has 53 | released a new version of the Affero GPL which permits relicensing under 54 | this license. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | TERMS AND CONDITIONS 60 | 61 | 0. Definitions. 62 | 63 | "This License" refers to version 3 of the GNU Affero General Public License. 64 | 65 | "Copyright" also means copyright-like laws that apply to other kinds of 66 | works, such as semiconductor masks. 67 | 68 | "The Program" refers to any copyrightable work licensed under this 69 | License. Each licensee is addressed as "you". "Licensees" and 70 | "recipients" may be individuals or organizations. 71 | 72 | To "modify" a work means to copy from or adapt all or part of the work 73 | in a fashion requiring copyright permission, other than the making of an 74 | exact copy. The resulting work is called a "modified version" of the 75 | earlier work or a work "based on" the earlier work. 76 | 77 | A "covered work" means either the unmodified Program or a work based 78 | on the Program. 79 | 80 | To "propagate" a work means to do anything with it that, without 81 | permission, would make you directly or secondarily liable for 82 | infringement under applicable copyright law, except executing it on a 83 | computer or modifying a private copy. Propagation includes copying, 84 | distribution (with or without modification), making available to the 85 | public, and in some countries other activities as well. 86 | 87 | To "convey" a work means any kind of propagation that enables other 88 | parties to make or receive copies. Mere interaction with a user through 89 | a computer network, with no transfer of a copy, is not conveying. 90 | 91 | An interactive user interface displays "Appropriate Legal Notices" 92 | to the extent that it includes a convenient and prominently visible 93 | feature that (1) displays an appropriate copyright notice, and (2) 94 | tells the user that there is no warranty for the work (except to the 95 | extent that warranties are provided), that licensees may convey the 96 | work under this License, and how to view a copy of this License. If 97 | the interface presents a list of user commands or options, such as a 98 | menu, a prominent item in the list meets this criterion. 99 | 100 | 1. Source Code. 101 | 102 | The "source code" for a work means the preferred form of the work 103 | for making modifications to it. "Object code" means any non-source 104 | form of a work. 105 | 106 | A "Standard Interface" means an interface that either is an official 107 | standard defined by a recognized standards body, or, in the case of 108 | interfaces specified for a particular programming language, one that 109 | is widely used among developers working in that language. 110 | 111 | The "System Libraries" of an executable work include anything, other 112 | than the work as a whole, that (a) is included in the normal form of 113 | packaging a Major Component, but which is not part of that Major 114 | Component, and (b) serves only to enable use of the work with that 115 | Major Component, or to implement a Standard Interface for which an 116 | implementation is available to the public in source code form. A 117 | "Major Component", in this context, means a major essential component 118 | (kernel, window system, and so on) of the specific operating system 119 | (if any) on which the executable work runs, or a compiler used to 120 | produce the work, or an object code interpreter used to run it. 121 | 122 | The "Corresponding Source" for a work in object code form means all 123 | the source code needed to generate, install, and (for an executable 124 | work) run the object code and to modify the work, including scripts to 125 | control those activities. However, it does not include the work's 126 | System Libraries, or general-purpose tools or generally available free 127 | programs which are used unmodified in performing those activities but 128 | which are not part of the work. For example, Corresponding Source 129 | includes interface definition files associated with source files for 130 | the work, and the source code for shared libraries and dynamically 131 | linked subprograms that the work is specifically designed to require, 132 | such as by intimate data communication or control flow between those 133 | subprograms and other parts of the work. 134 | 135 | The Corresponding Source need not include anything that users 136 | can regenerate automatically from other parts of the Corresponding 137 | Source. 138 | 139 | The Corresponding Source for a work in source code form is that 140 | same work. 141 | 142 | 2. Basic Permissions. 143 | 144 | All rights granted under this License are granted for the term of 145 | copyright on the Program, and are irrevocable provided the stated 146 | conditions are met. This License explicitly affirms your unlimited 147 | permission to run the unmodified Program. The output from running a 148 | covered work is covered by this License only if the output, given its 149 | content, constitutes a covered work. This License acknowledges your 150 | rights of fair use or other equivalent, as provided by copyright law. 151 | 152 | You may make, run and propagate covered works that you do not 153 | convey, without conditions so long as your license otherwise remains 154 | in force. You may convey covered works to others for the sole purpose 155 | of having them make modifications exclusively for you, or provide you 156 | with facilities for running those works, provided that you comply with 157 | the terms of this License in conveying all material for which you do 158 | not control copyright. Those thus making or running the covered works 159 | for you must do so exclusively on your behalf, under your direction 160 | and control, on terms that prohibit them from making any copies of 161 | your copyrighted material outside their relationship with you. 162 | 163 | Conveying under any other circumstances is permitted solely under 164 | the conditions stated below. Sublicensing is not allowed; section 10 165 | makes it unnecessary. 166 | 167 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 168 | 169 | No covered work shall be deemed part of an effective technological 170 | measure under any applicable law fulfilling obligations under article 171 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 172 | similar laws prohibiting or restricting circumvention of such 173 | measures. 174 | 175 | When you convey a covered work, you waive any legal power to forbid 176 | circumvention of technological measures to the extent such circumvention 177 | is effected by exercising rights under this License with respect to 178 | the covered work, and you disclaim any intention to limit operation or 179 | modification of the work as a means of enforcing, against the work's 180 | users, your or third parties' legal rights to forbid circumvention of 181 | technological measures. 182 | 183 | 4. Conveying Verbatim Copies. 184 | 185 | You may convey verbatim copies of the Program's source code as you 186 | receive it, in any medium, provided that you conspicuously and 187 | appropriately publish on each copy an appropriate copyright notice; 188 | keep intact all notices stating that this License and any 189 | non-permissive terms added in accord with section 7 apply to the code; 190 | keep intact all notices of the absence of any warranty; and give all 191 | recipients a copy of this License along with the Program. 192 | 193 | You may charge any price or no price for each copy that you convey, 194 | and you may offer support or warranty protection for a fee. 195 | 196 | 5. Conveying Modified Source Versions. 197 | 198 | You may convey a work based on the Program, or the modifications to 199 | produce it from the Program, in the form of source code under the 200 | terms of section 4, provided that you also meet all of these conditions: 201 | 202 | a) The work must carry prominent notices stating that you modified 203 | it, and giving a relevant date. 204 | 205 | b) The work must carry prominent notices stating that it is 206 | released under this License and any conditions added under section 207 | 7. This requirement modifies the requirement in section 4 to 208 | "keep intact all notices". 209 | 210 | c) You must license the entire work, as a whole, under this 211 | License to anyone who comes into possession of a copy. This 212 | License will therefore apply, along with any applicable section 7 213 | additional terms, to the whole of the work, and all its parts, 214 | regardless of how they are packaged. This License gives no 215 | permission to license the work in any other way, but it does not 216 | invalidate such permission if you have separately received it. 217 | 218 | d) If the work has interactive user interfaces, each must display 219 | Appropriate Legal Notices; however, if the Program has interactive 220 | interfaces that do not display Appropriate Legal Notices, your 221 | work need not make them do so. 222 | 223 | A compilation of a covered work with other separate and independent 224 | works, which are not by their nature extensions of the covered work, 225 | and which are not combined with it such as to form a larger program, 226 | in or on a volume of a storage or distribution medium, is called an 227 | "aggregate" if the compilation and its resulting copyright are not 228 | used to limit the access or legal rights of the compilation's users 229 | beyond what the individual works permit. Inclusion of a covered work 230 | in an aggregate does not cause this License to apply to the other 231 | parts of the aggregate. 232 | 233 | 6. Conveying Non-Source Forms. 234 | 235 | You may convey a covered work in object code form under the terms 236 | of sections 4 and 5, provided that you also convey the 237 | machine-readable Corresponding Source under the terms of this License, 238 | in one of these ways: 239 | 240 | a) Convey the object code in, or embodied in, a physical product 241 | (including a physical distribution medium), accompanied by the 242 | Corresponding Source fixed on a durable physical medium 243 | customarily used for software interchange. 244 | 245 | b) Convey the object code in, or embodied in, a physical product 246 | (including a physical distribution medium), accompanied by a 247 | written offer, valid for at least three years and valid for as 248 | long as you offer spare parts or customer support for that product 249 | model, to give anyone who possesses the object code either (1) a 250 | copy of the Corresponding Source for all the software in the 251 | product that is covered by this License, on a durable physical 252 | medium customarily used for software interchange, for a price no 253 | more than your reasonable cost of physically performing this 254 | conveying of source, or (2) access to copy the 255 | Corresponding Source from a network server at no charge. 256 | 257 | c) Convey individual copies of the object code with a copy of the 258 | written offer to provide the Corresponding Source. This 259 | alternative is allowed only occasionally and noncommercially, and 260 | only if you received the object code with such an offer, in accord 261 | with subsection 6b. 262 | 263 | d) Convey the object code by offering access from a designated 264 | place (gratis or for a charge), and offer equivalent access to the 265 | Corresponding Source in the same way through the same place at no 266 | further charge. You need not require recipients to copy the 267 | Corresponding Source along with the object code. If the place to 268 | copy the object code is a network server, the Corresponding Source 269 | may be on a different server (operated by you or a third party) 270 | that supports equivalent copying facilities, provided you maintain 271 | clear directions next to the object code saying where to find the 272 | Corresponding Source. Regardless of what server hosts the 273 | Corresponding Source, you remain obligated to ensure that it is 274 | available for as long as needed to satisfy these requirements. 275 | 276 | e) Convey the object code using peer-to-peer transmission, provided 277 | you inform other peers where the object code and Corresponding 278 | Source of the work are being offered to the general public at no 279 | charge under subsection 6d. 280 | 281 | A separable portion of the object code, whose source code is excluded 282 | from the Corresponding Source as a System Library, need not be 283 | included in conveying the object code work. 284 | 285 | A "User Product" is either (1) a "consumer product", which means any 286 | tangible personal property which is normally used for personal, family, 287 | or household purposes, or (2) anything designed or sold for incorporation 288 | into a dwelling. In determining whether a product is a consumer product, 289 | doubtful cases shall be resolved in favor of coverage. For a particular 290 | product received by a particular user, "normally used" refers to a 291 | typical or common use of that class of product, regardless of the status 292 | of the particular user or of the way in which the particular user 293 | actually uses, or expects or is expected to use, the product. A product 294 | is a consumer product regardless of whether the product has substantial 295 | commercial, industrial or non-consumer uses, unless such uses represent 296 | the only significant mode of use of the product. 297 | 298 | "Installation Information" for a User Product means any methods, 299 | procedures, authorization keys, or other information required to install 300 | and execute modified versions of a covered work in that User Product from 301 | a modified version of its Corresponding Source. The information must 302 | suffice to ensure that the continued functioning of the modified object 303 | code is in no case prevented or interfered with solely because 304 | modification has been made. 305 | 306 | If you convey an object code work under this section in, or with, or 307 | specifically for use in, a User Product, and the conveying occurs as 308 | part of a transaction in which the right of possession and use of the 309 | User Product is transferred to the recipient in perpetuity or for a 310 | fixed term (regardless of how the transaction is characterized), the 311 | Corresponding Source conveyed under this section must be accompanied 312 | by the Installation Information. But this requirement does not apply 313 | if neither you nor any third party retains the ability to install 314 | modified object code on the User Product (for example, the work has 315 | been installed in ROM). 316 | 317 | The requirement to provide Installation Information does not include a 318 | requirement to continue to provide support service, warranty, or updates 319 | for a work that has been modified or installed by the recipient, or for 320 | the User Product in which it has been modified or installed. Access to a 321 | network may be denied when the modification itself materially and 322 | adversely affects the operation of the network or violates the rules and 323 | protocols for communication across the network. 324 | 325 | Corresponding Source conveyed, and Installation Information provided, 326 | in accord with this section must be in a format that is publicly 327 | documented (and with an implementation available to the public in 328 | source code form), and must require no special password or key for 329 | unpacking, reading or copying. 330 | 331 | 7. Additional Terms. 332 | 333 | "Additional permissions" are terms that supplement the terms of this 334 | License by making exceptions from one or more of its conditions. 335 | Additional permissions that are applicable to the entire Program shall 336 | be treated as though they were included in this License, to the extent 337 | that they are valid under applicable law. If additional permissions 338 | apply only to part of the Program, that part may be used separately 339 | under those permissions, but the entire Program remains governed by 340 | this License without regard to the additional permissions. 341 | 342 | When you convey a copy of a covered work, you may at your option 343 | remove any additional permissions from that copy, or from any part of 344 | it. (Additional permissions may be written to require their own 345 | removal in certain cases when you modify the work.) You may place 346 | additional permissions on material, added by you to a covered work, 347 | for which you have or can give appropriate copyright permission. 348 | 349 | Notwithstanding any other provision of this License, for material you 350 | add to a covered work, you may (if authorized by the copyright holders of 351 | that material) supplement the terms of this License with terms: 352 | 353 | a) Disclaiming warranty or limiting liability differently from the 354 | terms of sections 15 and 16 of this License; or 355 | 356 | b) Requiring preservation of specified reasonable legal notices or 357 | author attributions in that material or in the Appropriate Legal 358 | Notices displayed by works containing it; or 359 | 360 | c) Prohibiting misrepresentation of the origin of that material, or 361 | requiring that modified versions of such material be marked in 362 | reasonable ways as different from the original version; or 363 | 364 | d) Limiting the use for publicity purposes of names of licensors or 365 | authors of the material; or 366 | 367 | e) Declining to grant rights under trademark law for use of some 368 | trade names, trademarks, or service marks; or 369 | 370 | f) Requiring indemnification of licensors and authors of that 371 | material by anyone who conveys the material (or modified versions of 372 | it) with contractual assumptions of liability to the recipient, for 373 | any liability that these contractual assumptions directly impose on 374 | those licensors and authors. 375 | 376 | All other non-permissive additional terms are considered "further 377 | restrictions" within the meaning of section 10. If the Program as you 378 | received it, or any part of it, contains a notice stating that it is 379 | governed by this License along with a term that is a further 380 | restriction, you may remove that term. If a license document contains 381 | a further restriction but permits relicensing or conveying under this 382 | License, you may add to a covered work material governed by the terms 383 | of that license document, provided that the further restriction does 384 | not survive such relicensing or conveying. 385 | 386 | If you add terms to a covered work in accord with this section, you 387 | must place, in the relevant source files, a statement of the 388 | additional terms that apply to those files, or a notice indicating 389 | where to find the applicable terms. 390 | 391 | Additional terms, permissive or non-permissive, may be stated in the 392 | form of a separately written license, or stated as exceptions; 393 | the above requirements apply either way. 394 | 395 | 8. Termination. 396 | 397 | You may not propagate or modify a covered work except as expressly 398 | provided under this License. Any attempt otherwise to propagate or 399 | modify it is void, and will automatically terminate your rights under 400 | this License (including any patent licenses granted under the third 401 | paragraph of section 11). 402 | 403 | However, if you cease all violation of this License, then your 404 | license from a particular copyright holder is reinstated (a) 405 | provisionally, unless and until the copyright holder explicitly and 406 | finally terminates your license, and (b) permanently, if the copyright 407 | holder fails to notify you of the violation by some reasonable means 408 | prior to 60 days after the cessation. 409 | 410 | Moreover, your license from a particular copyright holder is 411 | reinstated permanently if the copyright holder notifies you of the 412 | violation by some reasonable means, this is the first time you have 413 | received notice of violation of this License (for any work) from that 414 | copyright holder, and you cure the violation prior to 30 days after 415 | your receipt of the notice. 416 | 417 | Termination of your rights under this section does not terminate the 418 | licenses of parties who have received copies or rights from you under 419 | this License. If your rights have been terminated and not permanently 420 | reinstated, you do not qualify to receive new licenses for the same 421 | material under section 10. 422 | 423 | 9. Acceptance Not Required for Having Copies. 424 | 425 | You are not required to accept this License in order to receive or 426 | run a copy of the Program. Ancillary propagation of a covered work 427 | occurring solely as a consequence of using peer-to-peer transmission 428 | to receive a copy likewise does not require acceptance. However, 429 | nothing other than this License grants you permission to propagate or 430 | modify any covered work. These actions infringe copyright if you do 431 | not accept this License. Therefore, by modifying or propagating a 432 | covered work, you indicate your acceptance of this License to do so. 433 | 434 | 10. Automatic Licensing of Downstream Recipients. 435 | 436 | Each time you convey a covered work, the recipient automatically 437 | receives a license from the original licensors, to run, modify and 438 | propagate that work, subject to this License. You are not responsible 439 | for enforcing compliance by third parties with this License. 440 | 441 | An "entity transaction" is a transaction transferring control of an 442 | organization, or substantially all assets of one, or subdividing an 443 | organization, or merging organizations. If propagation of a covered 444 | work results from an entity transaction, each party to that 445 | transaction who receives a copy of the work also receives whatever 446 | licenses to the work the party's predecessor in interest had or could 447 | give under the previous paragraph, plus a right to possession of the 448 | Corresponding Source of the work from the predecessor in interest, if 449 | the predecessor has it or can get it with reasonable efforts. 450 | 451 | You may not impose any further restrictions on the exercise of the 452 | rights granted or affirmed under this License. For example, you may 453 | not impose a license fee, royalty, or other charge for exercise of 454 | rights granted under this License, and you may not initiate litigation 455 | (including a cross-claim or counterclaim in a lawsuit) alleging that 456 | any patent claim is infringed by making, using, selling, offering for 457 | sale, or importing the Program or any portion of it. 458 | 459 | 11. Patents. 460 | 461 | A "contributor" is a copyright holder who authorizes use under this 462 | License of the Program or a work on which the Program is based. The 463 | work thus licensed is called the contributor's "contributor version". 464 | 465 | A contributor's "essential patent claims" are all patent claims 466 | owned or controlled by the contributor, whether already acquired or 467 | hereafter acquired, that would be infringed by some manner, permitted 468 | by this License, of making, using, or selling its contributor version, 469 | but do not include claims that would be infringed only as a 470 | consequence of further modification of the contributor version. For 471 | purposes of this definition, "control" includes the right to grant 472 | patent sublicenses in a manner consistent with the requirements of 473 | this License. 474 | 475 | Each contributor grants you a non-exclusive, worldwide, royalty-free 476 | patent license under the contributor's essential patent claims, to 477 | make, use, sell, offer for sale, import and otherwise run, modify and 478 | propagate the contents of its contributor version. 479 | 480 | In the following three paragraphs, a "patent license" is any express 481 | agreement or commitment, however denominated, not to enforce a patent 482 | (such as an express permission to practice a patent or covenant not to 483 | sue for patent infringement). To "grant" such a patent license to a 484 | party means to make such an agreement or commitment not to enforce a 485 | patent against the party. 486 | 487 | If you convey a covered work, knowingly relying on a patent license, 488 | and the Corresponding Source of the work is not available for anyone 489 | to copy, free of charge and under the terms of this License, through a 490 | publicly available network server or other readily accessible means, 491 | then you must either (1) cause the Corresponding Source to be so 492 | available, or (2) arrange to deprive yourself of the benefit of the 493 | patent license for this particular work, or (3) arrange, in a manner 494 | consistent with the requirements of this License, to extend the patent 495 | license to downstream recipients. "Knowingly relying" means you have 496 | actual knowledge that, but for the patent license, your conveying the 497 | covered work in a country, or your recipient's use of the covered work 498 | in a country, would infringe one or more identifiable patents in that 499 | country that you have reason to believe are valid. 500 | 501 | If, pursuant to or in connection with a single transaction or 502 | arrangement, you convey, or propagate by procuring conveyance of, a 503 | covered work, and grant a patent license to some of the parties 504 | receiving the covered work authorizing them to use, propagate, modify 505 | or convey a specific copy of the covered work, then the patent license 506 | you grant is automatically extended to all recipients of the covered 507 | work and works based on it. 508 | 509 | A patent license is "discriminatory" if it does not include within 510 | the scope of its coverage, prohibits the exercise of, or is 511 | conditioned on the non-exercise of one or more of the rights that are 512 | specifically granted under this License. You may not convey a covered 513 | work if you are a party to an arrangement with a third party that is 514 | in the business of distributing software, under which you make payment 515 | to the third party based on the extent of your activity of conveying 516 | the work, and under which the third party grants, to any of the 517 | parties who would receive the covered work from you, a discriminatory 518 | patent license (a) in connection with copies of the covered work 519 | conveyed by you (or copies made from those copies), or (b) primarily 520 | for and in connection with specific products or compilations that 521 | contain the covered work, unless you entered into that arrangement, 522 | or that patent license was granted, prior to 28 March 2007. 523 | 524 | Nothing in this License shall be construed as excluding or limiting 525 | any implied license or other defenses to infringement that may 526 | otherwise be available to you under applicable patent law. 527 | 528 | 12. No Surrender of Others' Freedom. 529 | 530 | If conditions are imposed on you (whether by court order, agreement or 531 | otherwise) that contradict the conditions of this License, they do not 532 | excuse you from the conditions of this License. If you cannot convey a 533 | covered work so as to satisfy simultaneously your obligations under this 534 | License and any other pertinent obligations, then as a consequence you may 535 | not convey it at all. For example, if you agree to terms that obligate you 536 | to collect a royalty for further conveying from those to whom you convey 537 | the Program, the only way you could satisfy both those terms and this 538 | License would be to refrain entirely from conveying the Program. 539 | 540 | 13. Remote Network Interaction; Use with the GNU General Public License. 541 | 542 | Notwithstanding any other provision of this License, if you modify the 543 | Program, your modified version must prominently offer all users 544 | interacting with it remotely through a computer network (if your version 545 | supports such interaction) an opportunity to receive the Corresponding 546 | Source of your version by providing access to the Corresponding Source 547 | from a network server at no charge, through some standard or customary 548 | means of facilitating copying of software. This Corresponding Source 549 | shall include the Corresponding Source for any work covered by version 3 550 | of the GNU General Public License that is incorporated pursuant to the 551 | following paragraph. 552 | 553 | Notwithstanding any other provision of this License, you have 554 | permission to link or combine any covered work with a work licensed 555 | under version 3 of the GNU General Public License into a single 556 | combined work, and to convey the resulting work. The terms of this 557 | License will continue to apply to the part which is the covered work, 558 | but the work with which it is combined will remain governed by version 559 | 3 of the GNU General Public License. 560 | 561 | 14. Revised Versions of this License. 562 | 563 | The Free Software Foundation may publish revised and/or new versions of 564 | the GNU Affero General Public License from time to time. Such new versions 565 | will be similar in spirit to the present version, but may differ in detail to 566 | address new problems or concerns. 567 | 568 | Each version is given a distinguishing version number. If the 569 | Program specifies that a certain numbered version of the GNU Affero General 570 | Public License "or any later version" applies to it, you have the 571 | option of following the terms and conditions either of that numbered 572 | version or of any later version published by the Free Software 573 | Foundation. If the Program does not specify a version number of the 574 | GNU Affero General Public License, you may choose any version ever published 575 | by the Free Software Foundation. 576 | 577 | If the Program specifies that a proxy can decide which future 578 | versions of the GNU Affero General Public License can be used, that proxy's 579 | public statement of acceptance of a version permanently authorizes you 580 | to choose that version for the Program. 581 | 582 | Later license versions may give you additional or different 583 | permissions. However, no additional obligations are imposed on any 584 | author or copyright holder as a result of your choosing to follow a 585 | later version. 586 | 587 | 15. Disclaimer of Warranty. 588 | 589 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 590 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 591 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 592 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 593 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 594 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 595 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 596 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 597 | 598 | 16. Limitation of Liability. 599 | 600 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 601 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 602 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 603 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 604 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 605 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 606 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 607 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 608 | SUCH DAMAGES. 609 | 610 | 17. Interpretation of Sections 15 and 16. 611 | 612 | If the disclaimer of warranty and limitation of liability provided 613 | above cannot be given local legal effect according to their terms, 614 | reviewing courts shall apply local law that most closely approximates 615 | an absolute waiver of all civil liability in connection with the 616 | Program, unless a warranty or assumption of liability accompanies a 617 | copy of the Program in return for a fee. 618 | 619 | END OF TERMS AND CONDITIONS 620 | 621 | How to Apply These Terms to Your New Programs 622 | 623 | If you develop a new program, and you want it to be of the greatest 624 | possible use to the public, the best way to achieve this is to make it 625 | free software which everyone can redistribute and change under these terms. 626 | 627 | To do so, attach the following notices to the program. It is safest 628 | to attach them to the start of each source file to most effectively 629 | state the exclusion of warranty; and each file should have at least 630 | the "copyright" line and a pointer to where the full notice is found. 631 | 632 | 633 | Copyright (C) 634 | 635 | This program is free software: you can redistribute it and/or modify 636 | it under the terms of the GNU Affero General Public License as published 637 | by the Free Software Foundation, either version 3 of the License, or 638 | (at your option) any later version. 639 | 640 | This program is distributed in the hope that it will be useful, 641 | but WITHOUT ANY WARRANTY; without even the implied warranty of 642 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 643 | GNU Affero General Public License for more details. 644 | 645 | You should have received a copy of the GNU Affero General Public License 646 | along with this program. If not, see . 647 | 648 | Also add information on how to contact you by electronic and paper mail. 649 | 650 | If your software can interact with users remotely through a computer 651 | network, you should also make sure that it provides a way for users to 652 | get its source. For example, if your program is a web application, its 653 | interface could display a "Source" link that leads users to an archive 654 | of the code. There are many ways you could offer source, and different 655 | solutions will be better for different programs; see section 13 for the 656 | specific requirements. 657 | 658 | You should also get your employer (if you work as a programmer) or school, 659 | if any, to sign a "copyright disclaimer" for the program, if necessary. 660 | For more information on this, and how to apply and follow the GNU AGPL, see 661 | . 662 | -------------------------------------------------------------------------------- /MEDIAS/vario_banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MrEliptik/variometer/ea23105ba12d2e06f08678ae627fc11f55bd4ad4/MEDIAS/vario_banner.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | [![Forks][forks-shield]][forks-url] 11 | [![Stargazers][stars-shield]][stars-url] 12 | [![Issues][issues-shield]][issues-url] 13 | [![Licence][license-shield]][license-url] 14 | 15 | **WARNING!! This project is on hold! It's not being actively developped and is in a very incomplete stage. If you're interested, please contact me.** 16 | 17 | 18 |
19 |

20 | 21 | Logo 22 | 23 | 24 |

25 | 26 |

27 | An ESP32 based variometer made for paragliding. (GPS, variometer, altimeter, compass) 28 |
29 | Explore the docs » 30 |
31 |
32 | View Demo 33 | · 34 | Report Bug 35 | · 36 | Request Feature 37 |

38 |

39 | 40 | 41 | 42 | ## Table of Contents 43 | 44 | * [About the Project](#about-the-project) 45 | * [Built With](#built-with) 46 | * [Getting Started](#getting-started) 47 | * [Prerequisites](#prerequisites) 48 | * [Installation](#installation) 49 | * [Usage](#usage) 50 | * [Roadmap](#roadmap) 51 | * [Contributing](#contributing) 52 | * [License](#license) 53 | * [Contact](#contact) 54 | 55 | 56 | 57 | ## About The Project 58 | 59 | I'm starting paragliding and at some point I'll want a variometer to help me with soaring. The thing is, a commercial variometer can be very costly, and most of all, I love to make things. With this project, I want to see where I can push my embedded skills to make a full variometer with multiple modes. 60 | 61 | ### Built With 62 | 63 | - [Generic ESP8266 dev board]() 64 | - [GY-68 BMP-180 pressure/temperature sensor](https://fr.aliexpress.com/item/32974445995.html?spm=a2g0s.9042311.0.0.27426c37v9jqwu) 65 | - [GY-9250 9DOF accelerometer/gyroscope/magnetometer](https://fr.aliexpress.com/item/32657047350.html?spm=a2g0o.productlist.0.0.71877b5fs1ykll&algo_pvid=a9503d7c-d666-4761-9f6f-1a5cf54e499b&algo_expid=a9503d7c-d666-4761-9f6f-1a5cf54e499b-2&btsid=0b0a187916025200564147019ec887&ws_ab_test=searchweb0_0,searchweb201602_,searchweb201603_) 66 | - [2.0" TFT LCD screen](https://fr.aliexpress.com/item/33012793224.html?spm=a2g0w.search0302.3.8.75f62fb68GrkRi&ws_ab_test=searchweb0_0,searchweb201602_0,searchweb201603_0,ppcSwitch_0&algo_pvid=bfeaa64b-7135-4d79-a3ac-2a1fbdff3feb&algo_expid=bfeaa64b-7135-4d79-a3ac-2a1fbdff3feb-1) 67 | - [BEITIAN BN-280 GPS](https://fr.aliexpress.com/item/33028598418.html?spm=a2g0s.9042311.0.0.27426c37v9jqwu) 68 | - [5 way joystick](https://fr.aliexpress.com/item/32904543849.html?spm=a2g0s.9042311.0.0.27426c37YqAQKb) 69 | 70 | 71 | 72 | ## Getting Started 73 | 74 | *TODO* 75 | 76 | ### Prerequisites 77 | 78 | *TODO* 79 | 80 | ### Installation 81 | 82 | *TODO* 83 | 84 | 85 | 86 | ## Usage 87 | 88 | *TODO* 89 | 90 | 91 | ## Roadmap 92 | 93 | See the [project page](https://github.com/MrEliptik/variometer/projects). 94 | 95 | 96 | 97 | ## Contributing 98 | 99 | Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**. 100 | 101 | 1. Fork the Project 102 | 2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`) 103 | 3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`) 104 | 4. Push to the Branch (`git push origin feature/AmazingFeature`) 105 | 5. Open a Pull Request 106 | 107 | 108 | 109 | ## License 110 | 111 | Distributed under the GNU Affero General Public License v3.0. See [LICENCE](LICENCE) for more information. 112 | 113 | 114 | ## Contact 115 | 116 | Victor MEUNIER - [@VicMeunier](https://twitter.com/VicMeunier) - victormeunier.dev@gmail.com 117 | 118 | - [Website](https://www.victormeunier.com) 119 | - [Blog](https://blog.victormeunier.com) 120 | 121 | 122 | You like my work and want to support me? 123 | Buy Me A Coffee 124 | 125 | 126 | 127 | 128 | [contributors-shield]: https://img.shields.io/github/contributors/MrEliptik/variomete.svg?style=flat-square 129 | [contributors-url]: https://github.com/MrEliptik/variometer/graphs/contributors 130 | [forks-shield]: https://img.shields.io/github/forks/MrEliptik/variometer 131 | [forks-url]: https://github.com/MrEliptik/variometer/network/members 132 | [stars-shield]: https://img.shields.io/github/stars/MrEliptik/variometer 133 | [stars-url]: https://github.com/MrEliptik/variometer/stargazers 134 | [issues-shield]: https://img.shields.io/github/issues/MrEliptik/variometer 135 | [issues-url]: https://github.com/MrEliptik/variometer/issues 136 | [license-shield]: https://img.shields.io/github/license/MrEliptik/variometer 137 | [license-url]: https://github.com/MrEliptik/variometer/blob/main/LICENSE 138 | -------------------------------------------------------------------------------- /TESTS/TFT9225_test/.gitignore: -------------------------------------------------------------------------------- 1 | .pio 2 | .vscode/.browse.c_cpp.db* 3 | .vscode/c_cpp_properties.json 4 | .vscode/launch.json 5 | .vscode/ipch 6 | -------------------------------------------------------------------------------- /TESTS/TFT9225_test/.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | // See http://go.microsoft.com/fwlink/?LinkId=827846 3 | // for the documentation about the extensions.json format 4 | "recommendations": [ 5 | "platformio.platformio-ide" 6 | ] 7 | } 8 | -------------------------------------------------------------------------------- /TESTS/TFT9225_test/include/README: -------------------------------------------------------------------------------- 1 | 2 | This directory is intended for project header files. 3 | 4 | A header file is a file containing C declarations and macro definitions 5 | to be shared between several project source files. You request the use of a 6 | header file in your project source file (C, C++, etc) located in `src` folder 7 | by including it, with the C preprocessing directive `#include'. 8 | 9 | ```src/main.c 10 | 11 | #include "header.h" 12 | 13 | int main (void) 14 | { 15 | ... 16 | } 17 | ``` 18 | 19 | Including a header file produces the same results as copying the header file 20 | into each source file that needs it. Such copying would be time-consuming 21 | and error-prone. With a header file, the related declarations appear 22 | in only one place. If they need to be changed, they can be changed in one 23 | place, and programs that include the header file will automatically use the 24 | new version when next recompiled. The header file eliminates the labor of 25 | finding and changing all the copies as well as the risk that a failure to 26 | find one copy will result in inconsistencies within a program. 27 | 28 | In C, the usual convention is to give header files names that end with `.h'. 29 | It is most portable to use only letters, digits, dashes, and underscores in 30 | header file names, and at most one dot. 31 | 32 | Read more about using header files in official GCC documentation: 33 | 34 | * Include Syntax 35 | * Include Operation 36 | * Once-Only Headers 37 | * Computed Includes 38 | 39 | https://gcc.gnu.org/onlinedocs/cpp/Header-Files.html 40 | -------------------------------------------------------------------------------- /TESTS/TFT9225_test/lib/README: -------------------------------------------------------------------------------- 1 | 2 | This directory is intended for project specific (private) libraries. 3 | PlatformIO will compile them to static libraries and link into executable file. 4 | 5 | The source code of each library should be placed in a an own separate directory 6 | ("lib/your_library_name/[here are source files]"). 7 | 8 | For example, see a structure of the following two libraries `Foo` and `Bar`: 9 | 10 | |--lib 11 | | | 12 | | |--Bar 13 | | | |--docs 14 | | | |--examples 15 | | | |--src 16 | | | |- Bar.c 17 | | | |- Bar.h 18 | | | |- library.json (optional, custom build options, etc) https://docs.platformio.org/page/librarymanager/config.html 19 | | | 20 | | |--Foo 21 | | | |- Foo.c 22 | | | |- Foo.h 23 | | | 24 | | |- README --> THIS FILE 25 | | 26 | |- platformio.ini 27 | |--src 28 | |- main.c 29 | 30 | and a contents of `src/main.c`: 31 | ``` 32 | #include 33 | #include 34 | 35 | int main (void) 36 | { 37 | ... 38 | } 39 | 40 | ``` 41 | 42 | PlatformIO Library Dependency Finder will find automatically dependent 43 | libraries scanning project source files. 44 | 45 | More information about PlatformIO Library Dependency Finder 46 | - https://docs.platformio.org/page/librarymanager/ldf.html 47 | -------------------------------------------------------------------------------- /TESTS/TFT9225_test/platformio.ini: -------------------------------------------------------------------------------- 1 | ; PlatformIO Project Configuration File 2 | ; 3 | ; Build options: build flags, source filter 4 | ; Upload options: custom upload port, speed and extra flags 5 | ; Library options: dependencies, extra library storages 6 | ; Advanced options: extra scripting 7 | ; 8 | ; Please visit documentation for the other options and examples 9 | ; https://docs.platformio.org/page/projectconf.html 10 | 11 | [env:esp32doit-devkit-v1] 12 | platform = espressif32 13 | board = esp32doit-devkit-v1 14 | framework = arduino 15 | lib_deps = nkawu/TFT 22 ILI9225@^1.4.4 16 | SPI 17 | -------------------------------------------------------------------------------- /TESTS/TFT9225_test/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include "SPI.h" 4 | #include "TFT_22_ILI9225.h" 5 | 6 | #define TFT_RST 4 7 | #define TFT_RS 19 8 | #define TFT_CS 5 // CS 9 | #define TFT_SDI 23 // MOSI 10 | #define TFT_CLK 18 // SCK 11 | #define TFT_LED 0 // 0 if wired to +5V directly 12 | 13 | /* 14 | Hardware hookup 15 | 16 | LCD Pin Arduino Pin 17 | ------- ----------- 18 | 1 Vcc Vcc 19 | 2 Gnd Gnd 20 | 3 Gnd Gnd or N/C 21 | 4 N/C 22 | 5 N/C 23 | 6 LED (backlight) D3 -> not available on my LCD ? 24 | 7 CLK GPIO18 (SCK) 25 | 8 SDI GPIO23 (MOSI) 26 | 9 RS GPIO19 27 | 10 RST GPIO4 28 | 11 CS GPIO5 29 | */ 30 | 31 | // Use hardware SPI (faster - on Uno: 13-SCK, 12-MISO, 11-MOSI) 32 | //TFT_22_ILI9225 tft = TFT_22_ILI9225(TFT_RST, TFT_RS, TFT_CS, TFT_LED); 33 | // Use software SPI (slower) 34 | TFT_22_ILI9225 tft = TFT_22_ILI9225(TFT_RST, TFT_RS, TFT_CS, TFT_SDI, TFT_CLK, TFT_LED); 35 | 36 | void setup() { 37 | tft.begin(); 38 | Serial.begin(9600); 39 | } 40 | 41 | void loop() { 42 | tft.drawRectangle(0, 0, tft.maxX() - 1, tft.maxY() - 1, COLOR_WHITE); 43 | tft.setFont(Terminal6x8); 44 | tft.drawText(10, 10, "ILI9225"); 45 | delay(1000); 46 | 47 | tft.clear(); 48 | tft.drawText(10, 20, "clear"); 49 | delay(1000); 50 | 51 | tft.drawText(10, 30, "Small Font"); 52 | tft.setBackgroundColor(COLOR_YELLOW); 53 | tft.setFont(Terminal12x16); 54 | tft.drawText(90, 30, "BIG FONT", COLOR_RED); 55 | tft.setBackgroundColor(COLOR_BLACK); 56 | tft.setFont(Terminal6x8); 57 | delay(1000); 58 | 59 | tft.drawText(10, 40, "setBacklight off"); 60 | delay(500); 61 | tft.setBacklight(LOW); 62 | delay(500); 63 | tft.setBacklight(HIGH); 64 | tft.drawText(10, 50, "setBacklight on"); 65 | delay(1000); 66 | 67 | tft.drawRectangle(10, 10, 110, 110, COLOR_BLUE); 68 | tft.drawText(10, 60, "rectangle"); 69 | delay(1000); 70 | 71 | tft.fillRectangle(20, 20, 120, 120, COLOR_RED); 72 | tft.drawText(10, 70, "solidRectangle"); 73 | delay(1000); 74 | 75 | tft.drawCircle(80, 80, 50, COLOR_YELLOW); 76 | tft.drawText(10, 80, "circle"); 77 | delay(1000); 78 | 79 | tft.fillCircle(90, 90, 30, COLOR_GREEN); 80 | tft.drawText(10, 90, "solidCircle"); 81 | delay(1000); 82 | 83 | tft.drawLine(0, 0, tft.maxX() - 1, tft.maxY() - 1, COLOR_CYAN); 84 | tft.drawText(10, 100, "line"); 85 | delay(1000); 86 | 87 | for (uint8_t i = 0; i < 127; i++) 88 | tft.drawPixel(random(tft.maxX()), random(tft.maxY()), random(0xffff)); 89 | tft.drawText(10, 110, "point"); 90 | delay(1000); 91 | 92 | for (uint8_t i = 0; i < 4; i++) { 93 | tft.clear(); 94 | tft.setOrientation(i); 95 | tft.drawRectangle(0, 0, tft.maxX() - 1, tft.maxY() - 1, COLOR_WHITE); 96 | tft.drawText(10, 10, "setOrientation (" + String("0123").substring(i, i + 1) + ")"); 97 | tft.drawRectangle(10, 20, 50, 60, COLOR_GREEN); 98 | tft.drawCircle(70, 80, 10, COLOR_BLUE); 99 | tft.drawLine(30, 40, 70, 80, COLOR_YELLOW); 100 | delay(1000); 101 | } 102 | 103 | tft.setOrientation(0); 104 | tft.clear(); 105 | tft.setFont(Terminal12x16); 106 | tft.setBackgroundColor(COLOR_YELLOW); 107 | tft.drawText(10, 40, "Loony Tunes!", COLOR_RED); 108 | tft.setBackgroundColor(COLOR_RED); 109 | tft.setFont(Terminal6x8); 110 | delay(1000); 111 | 112 | tft.drawText(10, 60, " That's all folks! "); 113 | 114 | tft.setFont(Terminal12x16); 115 | tft.setBackgroundColor(COLOR_BLUE); 116 | tft.drawText(10, 100, " ILI9225 "); 117 | delay(1000); 118 | } -------------------------------------------------------------------------------- /TESTS/TFT9225_test/test/README: -------------------------------------------------------------------------------- 1 | 2 | This directory is intended for PlatformIO Unit Testing and project tests. 3 | 4 | Unit Testing is a software testing method by which individual units of 5 | source code, sets of one or more MCU program modules together with associated 6 | control data, usage procedures, and operating procedures, are tested to 7 | determine whether they are fit for use. Unit testing finds problems early 8 | in the development cycle. 9 | 10 | More information about PlatformIO Unit Testing: 11 | - https://docs.platformio.org/page/plus/unit-testing.html 12 | -------------------------------------------------------------------------------- /docs/_config.yml: -------------------------------------------------------------------------------- 1 | theme: jekyll-theme-minimal 2 | title: ESP32 Variometer 3 | #description: [A short description of your site's purpose] 4 | logo: https://github.com/MrEliptik/variometer/blob/main/MEDIAS/vario_banner.png 5 | show_downloads: true 6 | -------------------------------------------------------------------------------- /docs/index.md: -------------------------------------------------------------------------------- 1 | ![](https://github.com/MrEliptik/variometer/blob/main/MEDIAS/vario_banner.png) 2 | 3 | ## About the project 4 | 5 | I'm starting paragliding and at some point I'll want a variometer to help me with soaring. The thing is, a commercial variometer can be very costly, and most of all, I love to make things. With this project, I want to see where I can push my embedded skills to make a full variometer with multiple modes. 6 | -------------------------------------------------------------------------------- /vario/.gitignore: -------------------------------------------------------------------------------- 1 | .pio 2 | .vscode/.browse.c_cpp.db* 3 | .vscode/c_cpp_properties.json 4 | .vscode/launch.json 5 | .vscode/ipch 6 | -------------------------------------------------------------------------------- /vario/.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | // See http://go.microsoft.com/fwlink/?LinkId=827846 3 | // for the documentation about the extensions.json format 4 | "recommendations": [ 5 | "platformio.platformio-ide" 6 | ] 7 | } 8 | -------------------------------------------------------------------------------- /vario/include/README: -------------------------------------------------------------------------------- 1 | 2 | This directory is intended for project header files. 3 | 4 | A header file is a file containing C declarations and macro definitions 5 | to be shared between several project source files. You request the use of a 6 | header file in your project source file (C, C++, etc) located in `src` folder 7 | by including it, with the C preprocessing directive `#include'. 8 | 9 | ```src/main.c 10 | 11 | #include "header.h" 12 | 13 | int main (void) 14 | { 15 | ... 16 | } 17 | ``` 18 | 19 | Including a header file produces the same results as copying the header file 20 | into each source file that needs it. Such copying would be time-consuming 21 | and error-prone. With a header file, the related declarations appear 22 | in only one place. If they need to be changed, they can be changed in one 23 | place, and programs that include the header file will automatically use the 24 | new version when next recompiled. The header file eliminates the labor of 25 | finding and changing all the copies as well as the risk that a failure to 26 | find one copy will result in inconsistencies within a program. 27 | 28 | In C, the usual convention is to give header files names that end with `.h'. 29 | It is most portable to use only letters, digits, dashes, and underscores in 30 | header file names, and at most one dot. 31 | 32 | Read more about using header files in official GCC documentation: 33 | 34 | * Include Syntax 35 | * Include Operation 36 | * Once-Only Headers 37 | * Computed Includes 38 | 39 | https://gcc.gnu.org/onlinedocs/cpp/Header-Files.html 40 | -------------------------------------------------------------------------------- /vario/include/barometer.h: -------------------------------------------------------------------------------- 1 | #ifndef BAROMETER_H 2 | #define BAROMETER_H 3 | 4 | #include 5 | #include 6 | 7 | extern SFE_BMP180 baro; 8 | 9 | extern double baseline_pressure; 10 | extern double baseline_altitude; 11 | 12 | extern double last_pressure; 13 | extern double last_altitude; 14 | 15 | int setupBarometer(); 16 | 17 | double getTemperature(); 18 | double getAbsolutePressure(); 19 | double getAbsolutePressure(double temp); 20 | double getAltitudeDelta(); 21 | double getAltitudeDelta(double pressure); 22 | double getAltitude(); 23 | double getAltitude(double pressure); 24 | double getAscentRate(double last_reading_time); 25 | double getAscentRate(double altitude, unsigned long last_reading_time); 26 | 27 | #endif -------------------------------------------------------------------------------- /vario/include/display.h: -------------------------------------------------------------------------------- 1 | #ifndef DISPLAY_H 2 | #define DISPLAY_H 3 | 4 | #include "TFT_22_ILI9225.h" 5 | 6 | // ######### DISPLAY ######### 7 | #define TFT_RST 4 8 | #define TFT_RS 19 9 | #define TFT_CS 5 // CS 10 | #define TFT_SDI 23 // MOSI 11 | #define TFT_CLK 18 // SCK 12 | #define TFT_LED 0 // 0 if wired to +5V directly 13 | 14 | #define STATUS_BAR_OFFSET_Y 35 15 | 16 | static const uint8_t PROGMEM battery[] = { 17 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 18 | 0x00, 0x00, 0x00, 0xff, 0xf8, 0x00, 0xff, 0xf8, 0x00, 0xff, 0xf8, 0x00, 0xff, 0xfc, 0x00, 0xff, 19 | 0xfc, 0x00, 0xff, 0xfc, 0x00, 0xff, 0xfc, 0x00, 0xff, 0xfc, 0x00, 0xff, 0xfc, 0x00, 0xff, 0xf8, 20 | 0x00, 0xff, 0xf8, 0x00, 0xff, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 21 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 22 | }; 23 | 24 | static const uint8_t PROGMEM sd_card[] = { 25 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xff, 0xf0, 0x00, 26 | 0x03, 0xff, 0xf0, 0x00, 0x03, 0x5a, 0xd0, 0x00, 0x03, 0x5a, 0xd0, 0x00, 0x03, 0x5a, 0xd0, 0x00, 27 | 0x03, 0x5a, 0xd0, 0x00, 0x03, 0x00, 0x10, 0x00, 0x03, 0x00, 0x10, 0x00, 0x07, 0x00, 0x10, 0x00, 28 | 0x06, 0x00, 0x10, 0x00, 0x06, 0x00, 0x10, 0x00, 0x04, 0x00, 0x10, 0x00, 0x04, 0x00, 0x10, 0x00, 29 | 0x04, 0x00, 0x10, 0x00, 0x04, 0x00, 0x10, 0x00, 0x04, 0x00, 0x10, 0x00, 0x04, 0x00, 0x10, 0x00, 30 | 0x07, 0xff, 0xf0, 0x00, 0x07, 0xff, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 31 | 0x00, 0x00, 0x00, 0x00 32 | }; 33 | 34 | static const uint8_t PROGMEM up_right_arrow[] = { 35 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xfc, 0x00, 36 | 0x00, 0x0f, 0xfc, 0x00, 0x00, 0x07, 0xfc, 0x00, 0x00, 0x03, 0xfc, 0x00, 0x00, 0x03, 0xfc, 0x00, 37 | 0x00, 0x07, 0xfc, 0x00, 0x00, 0x0f, 0xfc, 0x00, 0x00, 0x1f, 0xfc, 0x00, 0x00, 0x3f, 0x9c, 0x00, 38 | 0x00, 0x7f, 0x0c, 0x00, 0x00, 0xfe, 0x00, 0x00, 0x01, 0xfc, 0x00, 0x00, 0x03, 0xf8, 0x00, 0x00, 39 | 0x07, 0xf0, 0x00, 0x00, 0x0f, 0xe0, 0x00, 0x00, 0x1f, 0xc0, 0x00, 0x00, 0x0f, 0xc0, 0x00, 0x00, 40 | 0x07, 0x80, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 41 | 0x00, 0x00, 0x00, 0x00 42 | }; 43 | 44 | static const uint8_t PROGMEM ascend[] = { 45 | // 'icons8-flèche-haut-droite-48', 48x48px 46 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 47 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xfe, 0x00, 0x00, 0x00, 0x01, 48 | 0xff, 0xff, 0x80, 0x00, 0x00, 0x07, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x0f, 0xff, 0xff, 0xf0, 0x00, 49 | 0x00, 0x3f, 0xff, 0xff, 0xfc, 0x00, 0x00, 0x7f, 0xe0, 0x07, 0xfe, 0x00, 0x00, 0xff, 0x80, 0x01, 50 | 0xff, 0x00, 0x00, 0xfe, 0x00, 0x00, 0x7f, 0x00, 0x01, 0xfc, 0x00, 0x00, 0x3f, 0x80, 0x03, 0xf8, 51 | 0x00, 0x00, 0x1f, 0xc0, 0x03, 0xf0, 0x00, 0x00, 0x0f, 0xc0, 0x07, 0xe0, 0x00, 0x00, 0x07, 0xe0, 52 | 0x07, 0xe0, 0x01, 0xff, 0x07, 0xe0, 0x0f, 0xc0, 0x1f, 0xff, 0x03, 0xf0, 0x0f, 0xc0, 0x1f, 0xff, 53 | 0x03, 0xf0, 0x0f, 0x80, 0x0f, 0xff, 0x01, 0xf0, 0x0f, 0x80, 0x07, 0xff, 0x01, 0xf0, 0x0f, 0x80, 54 | 0x03, 0xff, 0x01, 0xf0, 0x0f, 0x80, 0x03, 0xff, 0x01, 0xf0, 0x0f, 0x80, 0x07, 0xff, 0x01, 0xf0, 55 | 0x0f, 0x80, 0x0f, 0xff, 0x01, 0xf0, 0x0f, 0x80, 0x1f, 0xfe, 0x01, 0xf0, 0x0f, 0x80, 0x3f, 0xde, 56 | 0x01, 0xf0, 0x0f, 0x80, 0x7f, 0x8e, 0x01, 0xf0, 0x0f, 0x80, 0xff, 0x06, 0x01, 0xf0, 0x0f, 0xc1, 57 | 0xfe, 0x00, 0x03, 0xf0, 0x0f, 0xc1, 0xfc, 0x00, 0x03, 0xf0, 0x07, 0xe1, 0xf8, 0x00, 0x07, 0xe0, 58 | 0x07, 0xe0, 0xf0, 0x00, 0x07, 0xe0, 0x03, 0xf0, 0x60, 0x00, 0x0f, 0xc0, 0x03, 0xf8, 0x00, 0x00, 59 | 0x1f, 0xc0, 0x01, 0xfc, 0x00, 0x00, 0x3f, 0x80, 0x00, 0xfe, 0x00, 0x00, 0x7f, 0x00, 0x00, 0xff, 60 | 0x80, 0x01, 0xff, 0x00, 0x00, 0x7f, 0xe0, 0x07, 0xfe, 0x00, 0x00, 0x3f, 0xff, 0xff, 0xfc, 0x00, 61 | 0x00, 0x0f, 0xff, 0xff, 0xf0, 0x00, 0x00, 0x07, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x01, 0xff, 0xff, 62 | 0x80, 0x00, 0x00, 0x00, 0x7f, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 63 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 64 | }; 65 | 66 | static const uint8_t PROGMEM descend[] = { 67 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 68 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xfe, 0x00, 0x00, 0x00, 0x01, 69 | 0xff, 0xff, 0x80, 0x00, 0x00, 0x07, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x0f, 0xff, 0xff, 0xf0, 0x00, 70 | 0x00, 0x3f, 0xff, 0xff, 0xfc, 0x00, 0x00, 0x7f, 0xe0, 0x07, 0xfe, 0x00, 0x00, 0xff, 0x80, 0x01, 71 | 0xff, 0x00, 0x00, 0xfe, 0x00, 0x00, 0x7f, 0x00, 0x01, 0xfc, 0x00, 0x00, 0x3f, 0x80, 0x03, 0xf8, 72 | 0x00, 0x00, 0x1f, 0xc0, 0x03, 0xf0, 0x00, 0x00, 0x0f, 0xc0, 0x07, 0xe0, 0xe0, 0x00, 0x07, 0xe0, 73 | 0x07, 0xe1, 0xf0, 0x00, 0x07, 0xe0, 0x0f, 0xc3, 0xf8, 0x00, 0x03, 0xf0, 0x0f, 0xc3, 0xfc, 0x00, 74 | 0x03, 0xf0, 0x0f, 0x81, 0xfe, 0x06, 0x01, 0xf0, 0x0f, 0x80, 0xff, 0x0e, 0x01, 0xf0, 0x0f, 0x80, 75 | 0x7f, 0x9e, 0x01, 0xf0, 0x0f, 0x80, 0x3f, 0xfe, 0x01, 0xf0, 0x0f, 0x80, 0x1f, 0xff, 0x01, 0xf0, 76 | 0x0f, 0x80, 0x0f, 0xff, 0x01, 0xf0, 0x0f, 0x80, 0x07, 0xff, 0x01, 0xf0, 0x0f, 0x80, 0x03, 0xff, 77 | 0x01, 0xf0, 0x0f, 0x80, 0x07, 0xff, 0x01, 0xf0, 0x0f, 0x80, 0x0f, 0xff, 0x01, 0xf0, 0x0f, 0xc0, 78 | 0x1f, 0xff, 0x03, 0xf0, 0x0f, 0xc0, 0x1f, 0xff, 0x03, 0xf0, 0x07, 0xe0, 0x01, 0xff, 0x07, 0xe0, 79 | 0x07, 0xe0, 0x00, 0x00, 0x07, 0xe0, 0x03, 0xf0, 0x00, 0x00, 0x0f, 0xc0, 0x03, 0xf8, 0x00, 0x00, 80 | 0x1f, 0xc0, 0x01, 0xfc, 0x00, 0x00, 0x3f, 0x80, 0x00, 0xfe, 0x00, 0x00, 0x7f, 0x00, 0x00, 0xff, 81 | 0x80, 0x01, 0xff, 0x00, 0x00, 0x7f, 0xe0, 0x07, 0xfe, 0x00, 0x00, 0x3f, 0xff, 0xff, 0xfc, 0x00, 82 | 0x00, 0x0f, 0xff, 0xff, 0xf0, 0x00, 0x00, 0x07, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x01, 0xff, 0xff, 83 | 0x80, 0x00, 0x00, 0x00, 0x7f, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 84 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 85 | }; 86 | 87 | static const uint8_t PROGMEM mountain[] = { 88 | // 'icons8-montagne-48', 25x25px 89 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 90 | 0x00, 0x1e, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x3f, 0x00, 0x00, 91 | 0x00, 0x3f, 0x00, 0x00, 0x00, 0x7f, 0x80, 0x00, 0x00, 0x7f, 0x80, 0x00, 0x0e, 0xff, 0xc0, 0x00, 92 | 0x0f, 0xff, 0xc0, 0x00, 0x1f, 0xff, 0xe0, 0x00, 0x1f, 0xff, 0xe0, 0x00, 0x3f, 0xff, 0xf4, 0x00, 93 | 0x3f, 0xff, 0xfe, 0x00, 0x3f, 0xff, 0xfe, 0x00, 0x7f, 0xff, 0xff, 0x00, 0x7f, 0xff, 0xff, 0x00, 94 | 0xff, 0xff, 0xff, 0x80, 0xff, 0xff, 0xff, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 95 | 0x00, 0x00, 0x00, 0x00 96 | }; 97 | 98 | static const uint8_t PROGMEM barometer[] = { 99 | // 'icons8-pression-100', 48x48px 100 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1f, 0xfc, 101 | 0x00, 0x00, 0x00, 0x01, 0xff, 0xff, 0x80, 0x00, 0x00, 0x03, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x0f, 102 | 0xff, 0xff, 0xf8, 0x00, 0x00, 0x3f, 0xff, 0xff, 0xfe, 0x00, 0x00, 0x7f, 0xff, 0xff, 0xfe, 0x00, 103 | 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x01, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x03, 0xff, 0xff, 0xff, 104 | 0xff, 0xc0, 0x03, 0xff, 0xff, 0xff, 0xff, 0xe0, 0x07, 0xff, 0xff, 0xff, 0xff, 0xe0, 0x07, 0xff, 105 | 0xff, 0xff, 0xff, 0xf0, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xf8, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xf8, 106 | 0x1f, 0xff, 0xff, 0xff, 0x7f, 0xf8, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xfc, 0x1f, 0xff, 0xff, 0xf9, 107 | 0xff, 0xfc, 0x3f, 0xff, 0xff, 0xf3, 0xff, 0xfc, 0x3f, 0xff, 0xff, 0xc7, 0xff, 0xfc, 0x3f, 0xff, 108 | 0xff, 0x87, 0xff, 0xfc, 0x3f, 0xff, 0xfc, 0x0f, 0xff, 0xfc, 0x3f, 0xff, 0xfc, 0x1f, 0xff, 0xfc, 109 | 0x3f, 0xff, 0xfc, 0x1f, 0xff, 0xfc, 0x3f, 0xff, 0xfc, 0x1f, 0xff, 0xfc, 0x3f, 0xff, 0xfe, 0x3f, 110 | 0xff, 0xfc, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xfc, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xfc, 0x3f, 0xff, 111 | 0xff, 0xff, 0xff, 0xfc, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xfc, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xfc, 112 | 0x1f, 0xff, 0xff, 0xff, 0xff, 0xf8, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xf8, 0x0f, 0xff, 0xff, 0xff, 113 | 0xff, 0xf8, 0x07, 0xff, 0xff, 0xff, 0xff, 0xf0, 0x07, 0xff, 0xff, 0xff, 0xff, 0xe0, 0x03, 0xff, 114 | 0xff, 0xff, 0xff, 0xe0, 0x03, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x00, 0xff, 0xff, 0xff, 0xff, 0x80, 115 | 0x00, 0x7f, 0xff, 0xff, 0xff, 0x00, 0x00, 0x7f, 0xff, 0xff, 0xfe, 0x00, 0x00, 0x1f, 0xff, 0xff, 116 | 0xfc, 0x00, 0x00, 0x07, 0xff, 0xff, 0xf0, 0x00, 0x00, 0x03, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x00, 117 | 0x7f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 118 | }; 119 | 120 | static const uint8_t PROGMEM thermometer_small[] = { 121 | // 'icons8-thermomètre-50', 25x25px 122 | 0x00, 0x3e, 0x00, 0x00, 0x00, 0x7f, 0x00, 0x00, 0x00, 0x63, 0x00, 0x00, 0x00, 0x63, 0x00, 0x00, 123 | 0x00, 0x7f, 0x00, 0x00, 0x00, 0x7f, 0x00, 0x00, 0x00, 0x6f, 0x00, 0x00, 0x00, 0x6f, 0x00, 0x00, 124 | 0x00, 0x67, 0x00, 0x00, 0x00, 0x67, 0x00, 0x00, 0x00, 0x6f, 0x00, 0x00, 0x00, 0x6f, 0x00, 0x00, 125 | 0x00, 0x63, 0x00, 0x00, 0x00, 0x63, 0x00, 0x00, 0x00, 0xe3, 0x80, 0x00, 0x01, 0xc1, 0xc0, 0x00, 126 | 0x03, 0x80, 0xe0, 0x00, 0x03, 0x00, 0x60, 0x00, 0x03, 0x00, 0x60, 0x00, 0x03, 0x00, 0x60, 0x00, 127 | 0x03, 0x00, 0x60, 0x00, 0x03, 0x80, 0xe0, 0x00, 0x01, 0xc1, 0xc0, 0x00, 0x00, 0xff, 0x80, 0x00, 128 | 0x00, 0x7f, 0x00, 0x00 129 | }; 130 | 131 | static const uint8_t PROGMEM speedometer[] = { 132 | // 'icons8-compteur-de-vitesse-48', 48x48px 133 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 134 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 135 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, 0xfc, 0x00, 0x00, 0x00, 0x01, 0xff, 0xff, 0x80, 0x00, 136 | 0x00, 0x07, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x0f, 0xc0, 0x03, 0xf0, 0x00, 0x00, 0x3f, 0x00, 0x00, 137 | 0xfc, 0x00, 0x00, 0x7c, 0x00, 0x00, 0x3e, 0x00, 0x00, 0xf0, 0x1e, 0x78, 0x1f, 0x00, 0x01, 0xe0, 138 | 0x3e, 0x7c, 0x07, 0x80, 0x03, 0xc0, 0x3e, 0x78, 0x03, 0x80, 0x03, 0x82, 0x1e, 0x78, 0xc3, 0xc0, 139 | 0x07, 0x87, 0x1f, 0xf8, 0xe1, 0xe0, 0x07, 0x0f, 0x3f, 0xff, 0xf0, 0xe0, 0x0f, 0x0f, 0xff, 0xff, 140 | 0xf8, 0xf0, 0x0e, 0x03, 0xff, 0xff, 0xc8, 0x70, 0x0e, 0x03, 0xff, 0xff, 0x04, 0x78, 0x1c, 0x23, 141 | 0xff, 0xfe, 0x0c, 0x38, 0x1c, 0x7f, 0xff, 0xf8, 0x3e, 0x38, 0x1c, 0x7f, 0xff, 0xe0, 0x7e, 0x38, 142 | 0x1c, 0x7f, 0xfc, 0x01, 0xfe, 0x38, 0x1c, 0x7f, 0xf8, 0x07, 0xfe, 0x38, 0x1c, 0x0f, 0xf8, 0x0f, 143 | 0xf0, 0x38, 0x1c, 0x0f, 0xf8, 0x1f, 0xf0, 0x38, 0x1c, 0x7f, 0xf8, 0x1f, 0xfe, 0x38, 0x1c, 0x7f, 144 | 0xfc, 0x3f, 0xfe, 0x38, 0x1c, 0x7f, 0xff, 0xff, 0xfe, 0x38, 0x1c, 0x7f, 0xff, 0xff, 0xfe, 0x38, 145 | 0x1c, 0x33, 0xff, 0xff, 0xcc, 0x38, 0x1e, 0x01, 0xff, 0xff, 0x80, 0x78, 0x0e, 0x03, 0xc0, 0x03, 146 | 0xc0, 0x70, 0x0f, 0x07, 0xc0, 0x03, 0xe0, 0xf0, 0x07, 0x1f, 0xc0, 0x03, 0xf8, 0xe0, 0x07, 0xff, 147 | 0xc0, 0x03, 0xff, 0xe0, 0x03, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x01, 0xff, 0xff, 0xff, 0xff, 0xc0, 148 | 0x01, 0xff, 0xff, 0xff, 0xff, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 149 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 150 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 151 | }; 152 | 153 | static const uint8_t PROGMEM gps[] = { 154 | // 'icons8-marqueur-50', 50x50px 155 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1f, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 156 | 0x7f, 0xff, 0x80, 0x00, 0x00, 0x00, 0x01, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x00, 0x03, 0xff, 0xff, 157 | 0xf0, 0x00, 0x00, 0x00, 0x07, 0xff, 0xff, 0xf8, 0x00, 0x00, 0x00, 0x0f, 0xff, 0xff, 0xfc, 0x00, 158 | 0x00, 0x00, 0x1f, 0xff, 0xff, 0xfe, 0x00, 0x00, 0x00, 0x1f, 0xff, 0xff, 0xfe, 0x00, 0x00, 0x00, 159 | 0x3f, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x3f, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x7f, 0xff, 160 | 0xff, 0xff, 0x80, 0x00, 0x00, 0x7f, 0xff, 0xff, 0xff, 0x80, 0x00, 0x00, 0x7f, 0xfc, 0x0f, 0xff, 161 | 0x80, 0x00, 0x00, 0x7f, 0xf8, 0x07, 0xff, 0x80, 0x00, 0x00, 0x7f, 0xf0, 0x03, 0xff, 0x80, 0x00, 162 | 0x00, 0x7f, 0xf0, 0x03, 0xff, 0x80, 0x00, 0x00, 0x7f, 0xf0, 0x03, 0xff, 0x80, 0x00, 0x00, 0x7f, 163 | 0xf0, 0x03, 0xff, 0x80, 0x00, 0x00, 0x7f, 0xf0, 0x03, 0xff, 0x80, 0x00, 0x00, 0x7f, 0xf0, 0x03, 164 | 0xff, 0x80, 0x00, 0x00, 0x7f, 0xf8, 0x07, 0xff, 0x80, 0x00, 0x00, 0x7f, 0xfc, 0x0f, 0xff, 0x80, 165 | 0x00, 0x00, 0x7f, 0xff, 0xff, 0xff, 0x80, 0x00, 0x00, 0x3f, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 166 | 0x3f, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x3f, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x1f, 0xff, 167 | 0xff, 0xfe, 0x00, 0x00, 0x00, 0x1f, 0xff, 0xff, 0xfe, 0x00, 0x00, 0x00, 0x1f, 0xff, 0xff, 0xfe, 168 | 0x00, 0x00, 0x00, 0x0f, 0xff, 0xff, 0xfc, 0x00, 0x00, 0x00, 0x0f, 0xff, 0xff, 0xfc, 0x00, 0x00, 169 | 0x00, 0x07, 0xff, 0xff, 0xf8, 0x00, 0x00, 0x00, 0x07, 0xff, 0xff, 0xf8, 0x00, 0x00, 0x00, 0x03, 170 | 0xff, 0xff, 0xf0, 0x00, 0x00, 0x00, 0x03, 0xff, 0xff, 0xf0, 0x00, 0x00, 0x00, 0x01, 0xff, 0xff, 171 | 0xe0, 0x00, 0x00, 0x00, 0x01, 0xff, 0xff, 0xc0, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc0, 0x00, 172 | 0x00, 0x00, 0x00, 0x7f, 0xff, 0x80, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xff, 0x80, 0x00, 0x00, 0x00, 173 | 0x00, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1f, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1f, 174 | 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0xf8, 0x00, 175 | 0x00, 0x00, 0x00, 0x00, 0x03, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xf0, 0x00, 0x00, 0x00, 176 | 0x00, 0x00, 0x01, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 177 | }; 178 | 179 | static const uint8_t PROGMEM compass_big[] = { 180 | // 'icons8-aventures-96 (1)', 96x96px 181 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 182 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 183 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 184 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 185 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 186 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 187 | 0x00, 0x00, 0x00, 0x00, 0x01, 0xff, 0xff, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 188 | 0x1f, 0xff, 0xff, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xff, 0xff, 0xff, 189 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x00, 0x00, 0x00, 190 | 0x00, 0x00, 0x00, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1f, 191 | 0xff, 0xff, 0xff, 0xff, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xff, 0xff, 0xff, 0xff, 192 | 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 193 | 0x00, 0x00, 0x03, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x07, 0xff, 194 | 0xff, 0x80, 0x01, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xff, 0xf8, 0x00, 0x00, 0x1f, 195 | 0xff, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x1f, 0xff, 0xe0, 0x00, 0x00, 0x07, 0xff, 0xf8, 0x00, 0x00, 196 | 0x00, 0x00, 0x3f, 0xff, 0x80, 0x00, 0x00, 0x01, 0xff, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xfe, 197 | 0x00, 0x00, 0x00, 0x00, 0x7f, 0xfe, 0x00, 0x00, 0x00, 0x00, 0xff, 0xfc, 0x00, 0x00, 0x00, 0x00, 198 | 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x1f, 0xff, 0x00, 0x00, 199 | 0x00, 0x01, 0xff, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x07, 0xff, 0x80, 0x00, 0x00, 0x03, 0xff, 0xc0, 200 | 0x00, 0x00, 0x00, 0x00, 0x03, 0xff, 0xc0, 0x00, 0x00, 0x03, 0xff, 0x80, 0x00, 0x00, 0x00, 0x00, 201 | 0x01, 0xff, 0xc0, 0x00, 0x00, 0x07, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xe0, 0x00, 202 | 0x00, 0x0f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0xff, 0xf0, 0x00, 0x00, 0x0f, 0xfe, 0x00, 203 | 0x00, 0x00, 0x00, 0x01, 0xf0, 0x7f, 0xf0, 0x00, 0x00, 0x1f, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x0f, 204 | 0xf0, 0x3f, 0xf8, 0x00, 0x00, 0x1f, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x3f, 0xe0, 0x1f, 0xf8, 0x00, 205 | 0x00, 0x3f, 0xf8, 0x00, 0x00, 0x00, 0x01, 0xff, 0xe0, 0x1f, 0xfc, 0x00, 0x00, 0x3f, 0xf0, 0x00, 206 | 0x00, 0x00, 0x07, 0xff, 0xc0, 0x0f, 0xfc, 0x00, 0x00, 0x3f, 0xf0, 0x00, 0x00, 0x00, 0x1f, 0xff, 207 | 0xc0, 0x0f, 0xfc, 0x00, 0x00, 0x7f, 0xe0, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc0, 0x07, 0xfe, 0x00, 208 | 0x00, 0x7f, 0xe0, 0x00, 0x00, 0x03, 0xff, 0xff, 0x80, 0x07, 0xfe, 0x00, 0x00, 0x7f, 0xc0, 0x00, 209 | 0x00, 0x1f, 0xff, 0xff, 0x80, 0x03, 0xfe, 0x00, 0x00, 0x7f, 0xc0, 0x00, 0x00, 0x7f, 0xff, 0xff, 210 | 0x00, 0x03, 0xfe, 0x00, 0x00, 0xff, 0xc0, 0x00, 0x01, 0xff, 0xff, 0xff, 0x00, 0x03, 0xff, 0x00, 211 | 0x00, 0xff, 0xc0, 0x00, 0x01, 0xff, 0xff, 0xff, 0x00, 0x03, 0xff, 0x00, 0x00, 0xff, 0x80, 0x00, 212 | 0x03, 0xff, 0xff, 0xfe, 0x00, 0x01, 0xff, 0x00, 0x00, 0xff, 0x80, 0x00, 0x03, 0xff, 0xff, 0xfe, 213 | 0x00, 0x01, 0xff, 0x00, 0x00, 0xff, 0x80, 0x00, 0x07, 0xff, 0xff, 0xfc, 0x00, 0x01, 0xff, 0x00, 214 | 0x00, 0xff, 0x80, 0x00, 0x07, 0xfe, 0x7f, 0xfc, 0x00, 0x01, 0xff, 0x00, 0x00, 0xff, 0x80, 0x00, 215 | 0x07, 0xf8, 0x1f, 0xfc, 0x00, 0x01, 0xff, 0x00, 0x00, 0xff, 0x80, 0x00, 0x0f, 0xf8, 0x1f, 0xf8, 216 | 0x00, 0x01, 0xff, 0x00, 0x00, 0xff, 0x80, 0x00, 0x0f, 0xf0, 0x0f, 0xf8, 0x00, 0x01, 0xff, 0x00, 217 | 0x00, 0xff, 0x80, 0x00, 0x1f, 0xf0, 0x0f, 0xf0, 0x00, 0x01, 0xff, 0x00, 0x00, 0xff, 0x80, 0x00, 218 | 0x1f, 0xf8, 0x1f, 0xf0, 0x00, 0x01, 0xff, 0x00, 0x00, 0xff, 0x80, 0x00, 0x3f, 0xf8, 0x1f, 0xe0, 219 | 0x00, 0x01, 0xff, 0x00, 0x00, 0xff, 0x80, 0x00, 0x3f, 0xfe, 0x7f, 0xe0, 0x00, 0x01, 0xff, 0x00, 220 | 0x00, 0xff, 0x80, 0x00, 0x3f, 0xff, 0xff, 0xe0, 0x00, 0x01, 0xff, 0x00, 0x00, 0xff, 0x80, 0x00, 221 | 0x7f, 0xff, 0xff, 0xc0, 0x00, 0x01, 0xff, 0x00, 0x00, 0xff, 0x80, 0x00, 0x7f, 0xff, 0xff, 0xc0, 222 | 0x00, 0x01, 0xff, 0x00, 0x00, 0xff, 0xc0, 0x00, 0xff, 0xff, 0xff, 0x80, 0x00, 0x03, 0xff, 0x00, 223 | 0x00, 0xff, 0xc0, 0x00, 0xff, 0xff, 0xff, 0x80, 0x00, 0x03, 0xff, 0x00, 0x00, 0x7f, 0xc0, 0x00, 224 | 0xff, 0xff, 0xfe, 0x00, 0x00, 0x03, 0xfe, 0x00, 0x00, 0x7f, 0xc0, 0x01, 0xff, 0xff, 0xf8, 0x00, 225 | 0x00, 0x03, 0xfe, 0x00, 0x00, 0x7f, 0xe0, 0x01, 0xff, 0xff, 0xc0, 0x00, 0x00, 0x07, 0xfe, 0x00, 226 | 0x00, 0x7f, 0xe0, 0x03, 0xff, 0xff, 0x00, 0x00, 0x00, 0x07, 0xfe, 0x00, 0x00, 0x3f, 0xf0, 0x03, 227 | 0xff, 0xfc, 0x00, 0x00, 0x00, 0x0f, 0xfc, 0x00, 0x00, 0x3f, 0xf0, 0x03, 0xff, 0xe0, 0x00, 0x00, 228 | 0x00, 0x0f, 0xfc, 0x00, 0x00, 0x3f, 0xf8, 0x07, 0xff, 0x80, 0x00, 0x00, 0x00, 0x1f, 0xfc, 0x00, 229 | 0x00, 0x1f, 0xf8, 0x07, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x1f, 0xf8, 0x00, 0x00, 0x1f, 0xfc, 0x0f, 230 | 0xf0, 0x00, 0x00, 0x00, 0x00, 0x3f, 0xf8, 0x00, 0x00, 0x0f, 0xfe, 0x0f, 0x80, 0x00, 0x00, 0x00, 231 | 0x00, 0x7f, 0xf0, 0x00, 0x00, 0x0f, 0xff, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xf0, 0x00, 232 | 0x00, 0x07, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xe0, 0x00, 0x00, 0x03, 0xff, 0x80, 233 | 0x00, 0x00, 0x00, 0x00, 0x01, 0xff, 0xc0, 0x00, 0x00, 0x03, 0xff, 0xc0, 0x00, 0x00, 0x00, 0x00, 234 | 0x03, 0xff, 0xc0, 0x00, 0x00, 0x01, 0xff, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x07, 0xff, 0x80, 0x00, 235 | 0x00, 0x00, 0xff, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x1f, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xfc, 236 | 0x00, 0x00, 0x00, 0x00, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xfe, 0x00, 0x00, 0x00, 0x00, 237 | 0x7f, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x3f, 0xff, 0x80, 0x00, 0x00, 0x01, 0xff, 0xfc, 0x00, 0x00, 238 | 0x00, 0x00, 0x1f, 0xff, 0xe0, 0x00, 0x00, 0x07, 0xff, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xff, 239 | 0xf8, 0x00, 0x00, 0x1f, 0xff, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x07, 0xff, 0xff, 0x80, 0x01, 0xff, 240 | 0xff, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x03, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x00, 0x00, 241 | 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 242 | 0xff, 0xff, 0xff, 0xff, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1f, 0xff, 0xff, 0xff, 0xff, 243 | 0xf8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xf0, 0x00, 0x00, 0x00, 244 | 0x00, 0x00, 0x00, 0x03, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 245 | 0x7f, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1f, 0xff, 0xff, 0xf8, 246 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff, 0xff, 0x80, 0x00, 0x00, 0x00, 0x00, 247 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 248 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 249 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 250 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 251 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 252 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 253 | }; 254 | 255 | static const uint8_t PROGMEM barometer_big[] = { 256 | // 'icons8-pression-100', 96x96px 257 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 258 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 259 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 260 | 0x00, 0x00, 0x00, 0x00, 0x03, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 261 | 0x03, 0xff, 0xff, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xff, 0xff, 0xff, 262 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xff, 0xff, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x00, 263 | 0x00, 0x00, 0x00, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, 264 | 0xff, 0xff, 0xff, 0xff, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 265 | 0xff, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x00, 0x00, 266 | 0x00, 0x00, 0x03, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xff, 267 | 0xff, 0xff, 0xff, 0xff, 0xff, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 268 | 0xff, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 269 | 0x00, 0x00, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 270 | 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x80, 0x00, 0x00, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 271 | 0xff, 0xff, 0xc0, 0x00, 0x00, 0x03, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe0, 0x00, 272 | 0x00, 0x07, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf0, 0x00, 0x00, 0x07, 0xff, 0xff, 273 | 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf8, 0x00, 0x00, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 274 | 0xff, 0xff, 0xfc, 0x00, 0x00, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0x00, 275 | 0x00, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0x00, 0x00, 0x3f, 0xff, 0xff, 276 | 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0x00, 0x00, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 277 | 0xff, 0xff, 0xff, 0x00, 0x00, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x80, 278 | 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x80, 0x00, 0xff, 0xff, 0xff, 279 | 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x80, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 280 | 0xff, 0xff, 0xff, 0xc0, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe0, 281 | 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xff, 0xff, 0xe0, 0x03, 0xff, 0xff, 0xff, 282 | 0xff, 0xff, 0xff, 0xfe, 0xff, 0xff, 0xff, 0xe0, 0x03, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 283 | 0xff, 0xff, 0xff, 0xf0, 0x03, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf9, 0xff, 0xff, 0xff, 0xf0, 284 | 0x03, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe3, 0xff, 0xff, 0xff, 0xf0, 0x03, 0xff, 0xff, 0xff, 285 | 0xff, 0xff, 0xff, 0xc7, 0xff, 0xff, 0xff, 0xf0, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 286 | 0xff, 0xff, 0xff, 0xf8, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0x0f, 0xff, 0xff, 0xff, 0xf8, 287 | 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0x1f, 0xff, 0xff, 0xff, 0xf8, 0x0f, 0xff, 0xff, 0xff, 288 | 0xff, 0xff, 0xf8, 0x3f, 0xff, 0xff, 0xff, 0xf8, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe0, 0x3f, 289 | 0xff, 0xff, 0xff, 0xf8, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xfc, 0x00, 0x7f, 0xff, 0xff, 0xff, 0xf8, 290 | 0x0f, 0xff, 0xff, 0xff, 0xff, 0xf0, 0x00, 0xff, 0xff, 0xff, 0xff, 0xf8, 0x0f, 0xff, 0xff, 0xff, 291 | 0xff, 0xf0, 0x01, 0xff, 0xff, 0xff, 0xff, 0xf8, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xe0, 0x03, 0xff, 292 | 0xff, 0xff, 0xff, 0xf8, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xe0, 0x03, 0xff, 0xff, 0xff, 0xff, 0xf8, 293 | 0x0f, 0xff, 0xff, 0xff, 0xff, 0xe0, 0x03, 0xff, 0xff, 0xff, 0xff, 0xf8, 0x0f, 0xff, 0xff, 0xff, 294 | 0xff, 0xe0, 0x03, 0xff, 0xff, 0xff, 0xff, 0xf8, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xe0, 0x03, 0xff, 295 | 0xff, 0xff, 0xff, 0xf8, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xe0, 0x03, 0xff, 0xff, 0xff, 0xff, 0xf8, 296 | 0x0f, 0xff, 0xff, 0xff, 0xff, 0xf0, 0x07, 0xff, 0xff, 0xff, 0xff, 0xf8, 0x0f, 0xff, 0xff, 0xff, 297 | 0xff, 0xfc, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xf8, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 298 | 0xff, 0xff, 0xff, 0xf8, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf8, 299 | 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf8, 0x0f, 0xff, 0xff, 0xff, 300 | 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf8, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 301 | 0xff, 0xff, 0xff, 0xf8, 0x07, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf0, 302 | 0x03, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf0, 0x03, 0xff, 0xff, 0xff, 303 | 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf0, 0x03, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 304 | 0xff, 0xff, 0xff, 0xf0, 0x03, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf0, 305 | 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe0, 0x01, 0xff, 0xff, 0xff, 306 | 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe0, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 307 | 0xff, 0xff, 0xff, 0xc0, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x80, 308 | 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x80, 0x00, 0xff, 0xff, 0xff, 309 | 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x80, 0x00, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 310 | 0xff, 0xff, 0xff, 0x00, 0x00, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 311 | 0x00, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0x00, 0x00, 0x1f, 0xff, 0xff, 312 | 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0x00, 0x00, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 313 | 0xff, 0xff, 0xfc, 0x00, 0x00, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf8, 0x00, 314 | 0x00, 0x07, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf0, 0x00, 0x00, 0x03, 0xff, 0xff, 315 | 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 316 | 0xff, 0xff, 0xc0, 0x00, 0x00, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x00, 317 | 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x80, 0x00, 0x00, 0x00, 0x3f, 0xff, 318 | 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 319 | 0xff, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf8, 0x00, 0x00, 320 | 0x00, 0x00, 0x03, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff, 321 | 0xff, 0xff, 0xff, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 322 | 0xff, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 323 | 0x00, 0x00, 0x00, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 324 | 0xff, 0xff, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff, 0xff, 0xff, 0xff, 325 | 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 326 | 0x00, 0x00, 0x00, 0x00, 0x03, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 327 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 328 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 329 | }; 330 | 331 | static const uint8_t PROGMEM gps_big[] = { 332 | // 'icons8-marqueur-96', 96x96px 333 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 334 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 335 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 336 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 337 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 338 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 339 | 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 340 | 0x07, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1f, 0xff, 0xff, 0xf8, 341 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xff, 0xff, 0xfe, 0x00, 0x00, 0x00, 0x00, 342 | 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 343 | 0xff, 0xff, 0xff, 0xff, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0xff, 0xff, 0xff, 0xff, 344 | 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xf0, 0x00, 0x00, 0x00, 345 | 0x00, 0x00, 0x00, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, 346 | 0xff, 0xff, 0xff, 0xff, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xff, 0xff, 0xff, 0xff, 347 | 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xfe, 0x00, 0x00, 0x00, 348 | 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff, 349 | 0xff, 0xff, 0xff, 0xff, 0xff, 0x80, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 350 | 0xff, 0x80, 0x00, 0x00, 0x00, 0x00, 0x03, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x00, 0x00, 351 | 0x00, 0x00, 0x03, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x07, 0xff, 352 | 0xff, 0xff, 0xff, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x07, 0xff, 0xff, 0xff, 0xff, 0xff, 353 | 0xff, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x07, 0xff, 0xff, 0xf0, 0x0f, 0xff, 0xff, 0xe0, 0x00, 0x00, 354 | 0x00, 0x00, 0x0f, 0xff, 0xff, 0xc0, 0x03, 0xff, 0xff, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xff, 355 | 0xff, 0x80, 0x01, 0xff, 0xff, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xff, 0xff, 0x00, 0x00, 0xff, 356 | 0xff, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xf0, 0x00, 0x00, 357 | 0x00, 0x00, 0x0f, 0xff, 0xfe, 0x00, 0x00, 0x7f, 0xff, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xff, 358 | 0xfe, 0x00, 0x00, 0x7f, 0xff, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xff, 0xfe, 0x00, 0x00, 0x7f, 359 | 0xff, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xff, 0xfe, 0x00, 0x00, 0x7f, 0xff, 0xf0, 0x00, 0x00, 360 | 0x00, 0x00, 0x0f, 0xff, 0xfe, 0x00, 0x00, 0x7f, 0xff, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xff, 361 | 0xfe, 0x00, 0x00, 0x7f, 0xff, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xff, 0xfe, 0x00, 0x00, 0x7f, 362 | 0xff, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xff, 0xfe, 0x00, 0x00, 0x7f, 0xff, 0xf0, 0x00, 0x00, 363 | 0x00, 0x00, 0x0f, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xff, 364 | 0xff, 0x00, 0x00, 0xff, 0xff, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xff, 0xff, 0x80, 0x01, 0xff, 365 | 0xff, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x07, 0xff, 0xff, 0xc0, 0x03, 0xff, 0xff, 0xe0, 0x00, 0x00, 366 | 0x00, 0x00, 0x07, 0xff, 0xff, 0xf0, 0x0f, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x07, 0xff, 367 | 0xff, 0xff, 0xff, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x07, 0xff, 0xff, 0xff, 0xff, 0xff, 368 | 0xff, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x03, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x00, 0x00, 369 | 0x00, 0x00, 0x03, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x03, 0xff, 370 | 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 371 | 0xff, 0x80, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x80, 0x00, 0x00, 372 | 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 373 | 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xff, 0xff, 0xff, 0xff, 374 | 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xfe, 0x00, 0x00, 0x00, 375 | 0x00, 0x00, 0x00, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, 376 | 0xff, 0xff, 0xff, 0xff, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1f, 0xff, 0xff, 0xff, 0xff, 377 | 0xf8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xf8, 0x00, 0x00, 0x00, 378 | 0x00, 0x00, 0x00, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 379 | 0xff, 0xff, 0xff, 0xff, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0xff, 0xff, 0xff, 0xff, 380 | 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0xff, 0xff, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x00, 381 | 0x00, 0x00, 0x00, 0x03, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 382 | 0xff, 0xff, 0xff, 0xff, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff, 0xff, 0xff, 0xff, 383 | 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 384 | 0x00, 0x00, 0x00, 0x00, 0x7f, 0xff, 0xff, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 385 | 0x7f, 0xff, 0xff, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, 0xff, 0xff, 0xfc, 386 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1f, 0xff, 0xff, 0xf8, 0x00, 0x00, 0x00, 0x00, 387 | 0x00, 0x00, 0x00, 0x00, 0x1f, 0xff, 0xff, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 388 | 0x0f, 0xff, 0xff, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0xff, 0xff, 0xe0, 389 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x00, 0x00, 390 | 0x00, 0x00, 0x00, 0x00, 0x03, 0xff, 0xff, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 391 | 0x01, 0xff, 0xff, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, 392 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 393 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 394 | 0x00, 0x3f, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1f, 0xf8, 0x00, 395 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1f, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x00, 396 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 397 | 0x00, 0x07, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xc0, 0x00, 398 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 399 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 400 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 401 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 402 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 403 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 404 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 405 | }; 406 | 407 | static const uint8_t PROGMEM settings_big[] = { 408 | // 'icons8-paramètres-96', 96x96px 409 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 410 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 411 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 412 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 413 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 414 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 415 | 0x00, 0x00, 0x00, 0x00, 0x03, 0xff, 0xff, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 416 | 0x03, 0xff, 0xff, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xff, 0xff, 0xc0, 417 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x00, 0x00, 418 | 0x00, 0x00, 0x00, 0x00, 0x07, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 419 | 0x07, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0xff, 0xff, 0xe0, 420 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x00, 0x00, 421 | 0x00, 0x00, 0x00, 0x00, 0x0f, 0xff, 0xff, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 422 | 0x0f, 0xff, 0xff, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, 0xff, 0xff, 0xfc, 423 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x04, 0x00, 0x00, 424 | 0x00, 0x00, 0x7c, 0x03, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x3e, 0x00, 0x00, 0x00, 0x00, 0xff, 0x07, 425 | 0xff, 0xff, 0xff, 0xff, 0xe0, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xef, 0xff, 0xff, 0xff, 0xff, 426 | 0xf7, 0xff, 0x00, 0x00, 0x00, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x80, 0x00, 427 | 0x00, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x80, 0x00, 0x00, 0x03, 0xff, 0xff, 428 | 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x00, 0x00, 0x07, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 429 | 0xff, 0xff, 0xe0, 0x00, 0x00, 0x07, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe0, 0x00, 430 | 0x00, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf0, 0x00, 0x00, 0x0f, 0xff, 0xff, 431 | 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf0, 0x00, 0x00, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 432 | 0xff, 0xff, 0xf8, 0x00, 0x00, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf8, 0x00, 433 | 0x00, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0x00, 0x00, 0x7f, 0xff, 0xff, 434 | 0xff, 0xe0, 0x07, 0xff, 0xff, 0xff, 0xfe, 0x00, 0x00, 0x7f, 0xff, 0xff, 0xff, 0x80, 0x01, 0xff, 435 | 0xff, 0xff, 0xfe, 0x00, 0x00, 0xff, 0xff, 0xff, 0xfe, 0x00, 0x00, 0x7f, 0xff, 0xff, 0xff, 0x00, 436 | 0x00, 0xff, 0xff, 0xff, 0xfc, 0x00, 0x00, 0x3f, 0xff, 0xff, 0xff, 0x00, 0x00, 0x7f, 0xff, 0xff, 437 | 0xf8, 0x00, 0x00, 0x1f, 0xff, 0xff, 0xfe, 0x00, 0x00, 0x3f, 0xff, 0xff, 0xf0, 0x00, 0x00, 0x0f, 438 | 0xff, 0xff, 0xfc, 0x00, 0x00, 0x0f, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x07, 0xff, 0xff, 0xf0, 0x00, 439 | 0x00, 0x07, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x07, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x03, 0xff, 0xff, 440 | 0xc0, 0x00, 0x00, 0x03, 0xff, 0xff, 0xc0, 0x00, 0x00, 0x01, 0xff, 0xff, 0xc0, 0x00, 0x00, 0x03, 441 | 0xff, 0xff, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x80, 0x00, 0x00, 0x01, 0xff, 0xff, 0x00, 0x00, 442 | 0x00, 0x00, 0xff, 0xff, 0x80, 0x00, 0x00, 0x01, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 443 | 0x80, 0x00, 0x00, 0x01, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x80, 0x00, 0x00, 0x01, 444 | 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x80, 0x00, 0x00, 0x01, 0xff, 0xff, 0x00, 0x00, 445 | 0x00, 0x00, 0xff, 0xff, 0x80, 0x00, 0x00, 0x01, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 446 | 0x80, 0x00, 0x00, 0x01, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x80, 0x00, 0x00, 0x01, 447 | 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x80, 0x00, 0x00, 0x01, 0xff, 0xff, 0x00, 0x00, 448 | 0x00, 0x00, 0xff, 0xff, 0x80, 0x00, 0x00, 0x01, 0xff, 0xff, 0x00, 0x00, 0x00, 0x01, 0xff, 0xff, 449 | 0xc0, 0x00, 0x00, 0x03, 0xff, 0xff, 0x80, 0x00, 0x00, 0x03, 0xff, 0xff, 0xc0, 0x00, 0x00, 0x03, 450 | 0xff, 0xff, 0xc0, 0x00, 0x00, 0x07, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x07, 0xff, 0xff, 0xe0, 0x00, 451 | 0x00, 0x0f, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x07, 0xff, 0xff, 0xf0, 0x00, 0x00, 0x3f, 0xff, 0xff, 452 | 0xf0, 0x00, 0x00, 0x0f, 0xff, 0xff, 0xfc, 0x00, 0x00, 0x7f, 0xff, 0xff, 0xf8, 0x00, 0x00, 0x1f, 453 | 0xff, 0xff, 0xfe, 0x00, 0x00, 0xff, 0xff, 0xff, 0xfc, 0x00, 0x00, 0x3f, 0xff, 0xff, 0xff, 0x00, 454 | 0x00, 0xff, 0xff, 0xff, 0xfe, 0x00, 0x00, 0x7f, 0xff, 0xff, 0xff, 0x00, 0x00, 0x7f, 0xff, 0xff, 455 | 0xff, 0x80, 0x01, 0xff, 0xff, 0xff, 0xfe, 0x00, 0x00, 0x7f, 0xff, 0xff, 0xff, 0xe0, 0x07, 0xff, 456 | 0xff, 0xff, 0xfe, 0x00, 0x00, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0x00, 457 | 0x00, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf8, 0x00, 0x00, 0x1f, 0xff, 0xff, 458 | 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf8, 0x00, 0x00, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 459 | 0xff, 0xff, 0xf0, 0x00, 0x00, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf0, 0x00, 460 | 0x00, 0x07, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x07, 0xff, 0xff, 461 | 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x03, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 462 | 0xff, 0xff, 0xc0, 0x00, 0x00, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x80, 0x00, 463 | 0x00, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x80, 0x00, 0x00, 0x00, 0xff, 0xef, 464 | 0xff, 0xff, 0xff, 0xff, 0xf7, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0x07, 0xff, 0xff, 0xff, 0xff, 465 | 0xe0, 0xff, 0x00, 0x00, 0x00, 0x00, 0x7c, 0x03, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x3e, 0x00, 0x00, 466 | 0x00, 0x00, 0x20, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 467 | 0x3f, 0xff, 0xff, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xff, 0xff, 0xf0, 468 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xff, 0xff, 0xf0, 0x00, 0x00, 0x00, 0x00, 469 | 0x00, 0x00, 0x00, 0x00, 0x07, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 470 | 0x07, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0xff, 0xff, 0xe0, 471 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x00, 0x00, 472 | 0x00, 0x00, 0x00, 0x00, 0x07, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 473 | 0x03, 0xff, 0xff, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xff, 0xff, 0xc0, 474 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xff, 0xff, 0xc0, 0x00, 0x00, 0x00, 0x00, 475 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 476 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 477 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 478 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 479 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 480 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 481 | }; 482 | 483 | static const uint8_t PROGMEM settings_small[] = { 484 | // 'icons8-paramètres-96', 36x36px 485 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 486 | 0x03, 0xfc, 0x00, 0x00, 0x00, 0x07, 0xfe, 0x00, 0x00, 0x00, 0x07, 0xfe, 0x00, 0x00, 0x00, 0x0f, 487 | 0xff, 0x00, 0x00, 0x03, 0xbf, 0xff, 0xdc, 0x00, 0x07, 0xff, 0xff, 0xfe, 0x00, 0x0f, 0xff, 0xff, 488 | 0xff, 0x00, 0x0f, 0xff, 0xff, 0xff, 0x00, 0x1f, 0xff, 0xff, 0xff, 0x80, 0x1f, 0xff, 0xff, 0xff, 489 | 0x80, 0x1f, 0xfe, 0x07, 0xff, 0x80, 0x1f, 0xfe, 0x07, 0xff, 0x80, 0x0f, 0xf8, 0x03, 0xff, 0x00, 490 | 0x07, 0xf8, 0x01, 0xfe, 0x00, 0x03, 0xf8, 0x01, 0xfc, 0x00, 0x03, 0xf8, 0x01, 0xfc, 0x00, 0x07, 491 | 0xf8, 0x01, 0xfe, 0x00, 0x0f, 0xf8, 0x01, 0xff, 0x00, 0x1f, 0xfe, 0x07, 0xff, 0x80, 0x1f, 0xfe, 492 | 0x07, 0xff, 0x80, 0x1f, 0xff, 0xff, 0xff, 0x80, 0x1f, 0xff, 0xff, 0xff, 0x80, 0x0f, 0xff, 0xff, 493 | 0xff, 0x00, 0x0f, 0xff, 0xff, 0xff, 0x00, 0x07, 0xff, 0xff, 0xfe, 0x00, 0x03, 0xbf, 0xff, 0xdc, 494 | 0x00, 0x00, 0x0f, 0xff, 0x00, 0x00, 0x00, 0x07, 0xfe, 0x00, 0x00, 0x00, 0x07, 0xfe, 0x00, 0x00, 495 | 0x00, 0x03, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 496 | 0x00, 0x00, 0x00, 0x00 497 | }; 498 | 499 | static const uint8_t PROGMEM gps_small[] = { 500 | // 'icons8-marqueur-96', 36x36px 501 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 502 | 0x0f, 0xff, 0x00, 0x00, 0x00, 0x1f, 0xff, 0x80, 0x00, 0x00, 0x3f, 0xff, 0xc0, 0x00, 0x00, 0x7f, 503 | 0xff, 0xe0, 0x00, 0x00, 0x7f, 0xff, 0xe0, 0x00, 0x00, 0xff, 0xff, 0xf0, 0x00, 0x01, 0xff, 0xff, 504 | 0xf8, 0x00, 0x01, 0xff, 0xff, 0xf8, 0x00, 0x01, 0xff, 0x0f, 0xf8, 0x00, 0x01, 0xfe, 0x07, 0xf8, 505 | 0x00, 0x01, 0xfe, 0x07, 0xf8, 0x00, 0x01, 0xfe, 0x07, 0xf8, 0x00, 0x01, 0xff, 0x0f, 0xf8, 0x00, 506 | 0x01, 0xff, 0xff, 0xf8, 0x00, 0x01, 0xff, 0xff, 0xf8, 0x00, 0x00, 0xff, 0xff, 0xf0, 0x00, 0x00, 507 | 0xff, 0xff, 0xf0, 0x00, 0x00, 0x7f, 0xff, 0xe0, 0x00, 0x00, 0x7f, 0xff, 0xe0, 0x00, 0x00, 0x7f, 508 | 0xff, 0xe0, 0x00, 0x00, 0x3f, 0xff, 0xc0, 0x00, 0x00, 0x1f, 0xff, 0x80, 0x00, 0x00, 0x0f, 0xff, 509 | 0x80, 0x00, 0x00, 0x0f, 0xff, 0x00, 0x00, 0x00, 0x07, 0xfe, 0x00, 0x00, 0x00, 0x07, 0xfe, 0x00, 510 | 0x00, 0x00, 0x03, 0xfc, 0x00, 0x00, 0x00, 0x01, 0xf8, 0x00, 0x00, 0x00, 0x01, 0xf8, 0x00, 0x00, 511 | 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 512 | 0x00, 0x00, 0x00, 0x00 513 | }; 514 | 515 | static const uint8_t PROGMEM barometer_small[] = { 516 | // 'icons8-pression-100', 36x36px 517 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0xff, 0x00, 0x00, 0x00, 0x3f, 0xff, 0xc0, 0x00, 0x00, 518 | 0x7f, 0xff, 0xf0, 0x00, 0x00, 0xff, 0xff, 0xf8, 0x00, 0x03, 0xff, 0xff, 0xfc, 0x00, 0x07, 0xff, 519 | 0xff, 0xfe, 0x00, 0x07, 0xff, 0xff, 0xff, 0x00, 0x0f, 0xff, 0xff, 0xff, 0x80, 0x1f, 0xff, 0xff, 520 | 0xff, 0x80, 0x3f, 0xff, 0xff, 0xff, 0xc0, 0x3f, 0xff, 0xff, 0xff, 0xe0, 0x3f, 0xff, 0xff, 0xff, 521 | 0xe0, 0x7f, 0xff, 0xff, 0xff, 0xe0, 0x7f, 0xff, 0xff, 0xff, 0xe0, 0x7f, 0xff, 0xf7, 0xff, 0xf0, 522 | 0x7f, 0xff, 0xe7, 0xff, 0xf0, 0x7f, 0xff, 0x8f, 0xff, 0xf0, 0x7f, 0xff, 0x8f, 0xff, 0xf0, 0x7f, 523 | 0xff, 0x9f, 0xff, 0xf0, 0x7f, 0xff, 0xff, 0xff, 0xf0, 0x7f, 0xff, 0xff, 0xff, 0xf0, 0x7f, 0xff, 524 | 0xff, 0xff, 0xe0, 0x7f, 0xff, 0xff, 0xff, 0xe0, 0x3f, 0xff, 0xff, 0xff, 0xe0, 0x3f, 0xff, 0xff, 525 | 0xff, 0xc0, 0x1f, 0xff, 0xff, 0xff, 0xc0, 0x1f, 0xff, 0xff, 0xff, 0x80, 0x0f, 0xff, 0xff, 0xff, 526 | 0x00, 0x07, 0xff, 0xff, 0xff, 0x00, 0x03, 0xff, 0xff, 0xfe, 0x00, 0x01, 0xff, 0xff, 0xfc, 0x00, 527 | 0x00, 0xff, 0xff, 0xf0, 0x00, 0x00, 0x3f, 0xff, 0xe0, 0x00, 0x00, 0x1f, 0xff, 0x80, 0x00, 0x00, 528 | 0x01, 0xfc, 0x00, 0x00 529 | }; 530 | 531 | static const uint8_t PROGMEM barometer_25[] = { 532 | // 'icons8-pression-100', 25x25px 533 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0x80, 0x00, 0x03, 0xff, 0xe0, 0x00, 0x07, 0xff, 0xf8, 0x00, 534 | 0x0f, 0xff, 0xfc, 0x00, 0x1f, 0xff, 0xfe, 0x00, 0x3f, 0xff, 0xfe, 0x00, 0x3f, 0xff, 0xfe, 0x00, 535 | 0x3f, 0xff, 0xff, 0x00, 0x7f, 0xff, 0xff, 0x00, 0x7f, 0xfd, 0xff, 0x80, 0x7f, 0xf9, 0xff, 0x80, 536 | 0x7f, 0xf3, 0xff, 0x80, 0x7f, 0xf3, 0xff, 0x80, 0x7f, 0xff, 0xff, 0x80, 0x7f, 0xff, 0xff, 0x00, 537 | 0x7f, 0xff, 0xff, 0x00, 0x3f, 0xff, 0xff, 0x00, 0x3f, 0xff, 0xfe, 0x00, 0x1f, 0xff, 0xfe, 0x00, 538 | 0x1f, 0xff, 0xfc, 0x00, 0x0f, 0xff, 0xf8, 0x00, 0x07, 0xff, 0xf0, 0x00, 0x00, 0xff, 0xc0, 0x00, 539 | 0x00, 0x3e, 0x00, 0x00 540 | }; 541 | 542 | static const uint8_t PROGMEM compass_small[] = { 543 | // 'icons8-aventures-96 (1)', 36x36px 544 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 545 | 0x1f, 0xff, 0x80, 0x00, 0x00, 0x3f, 0xff, 0xe0, 0x00, 0x00, 0x7f, 0xff, 0xe0, 0x00, 0x01, 0xff, 546 | 0xff, 0xf8, 0x00, 0x03, 0xfe, 0x03, 0xfc, 0x00, 0x03, 0xf8, 0x00, 0xfc, 0x00, 0x0f, 0xe0, 0x00, 547 | 0x7f, 0x00, 0x0f, 0xc0, 0x01, 0xff, 0x00, 0x1f, 0x80, 0x07, 0xdf, 0x80, 0x1f, 0x00, 0x3f, 0xcf, 548 | 0x80, 0x1f, 0x00, 0xff, 0x8f, 0x80, 0x1f, 0x03, 0xff, 0x8f, 0x80, 0x1e, 0x03, 0xff, 0x07, 0x80, 549 | 0x1e, 0x07, 0xff, 0x07, 0x80, 0x1e, 0x07, 0xff, 0x07, 0x80, 0x1e, 0x0f, 0xfe, 0x07, 0x80, 0x1e, 550 | 0x0f, 0xfe, 0x07, 0x80, 0x1e, 0x0f, 0xfc, 0x07, 0x80, 0x1e, 0x1f, 0xfc, 0x07, 0x80, 0x1f, 0x1f, 551 | 0xf0, 0x0f, 0x80, 0x1f, 0x3f, 0xc0, 0x0f, 0x80, 0x1f, 0xbe, 0x00, 0x1f, 0x80, 0x0f, 0xf8, 0x00, 552 | 0x3f, 0x00, 0x0f, 0xe0, 0x00, 0x7f, 0x00, 0x03, 0xf0, 0x00, 0xfc, 0x00, 0x03, 0xfe, 0x03, 0xfc, 553 | 0x00, 0x01, 0xff, 0xff, 0xf8, 0x00, 0x00, 0x7f, 0xff, 0xe0, 0x00, 0x00, 0x3f, 0xff, 0xe0, 0x00, 554 | 0x00, 0x1f, 0xff, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 555 | 0x00, 0x00, 0x00, 0x00 556 | }; 557 | 558 | void setupDisplay(int orientation, uint8_t * font); 559 | void clearDisplay(); 560 | void displayStr(uint16_t x, uint16_t y, String msg); 561 | void displayStatusBar(); 562 | void displayMenu(int state); 563 | void displayVarioPage(); 564 | void displayVarioInfos(float altitude, float pressure, float temperature, float ascent_rate); 565 | #endif -------------------------------------------------------------------------------- /vario/include/main.h: -------------------------------------------------------------------------------- 1 | #include 2 | #include "SPI.h" 3 | 4 | #include 5 | #include 6 | 7 | // Need to use GPIO number 8 | //TODO : update these pins with the ESP32 9 | #define GPS_PPS_PIN 0 10 | #define LED_PIN 3 11 | #define BUZZER_PIN 32 12 | #define SLCK_PIN 5 13 | #define MISO_PIN 6 14 | #define MOSI_PIN 7 15 | #define CS_PIN 8 16 | 17 | #define JOYSTICK_PIN 36 18 | 19 | #define BUZZER_CHANNEL 0 20 | 21 | // ######### GENERAL ######### 22 | #define LOOP_HERTZ 60 // Hz 23 | #define LOOP_TIME 1.0/(float)LOOP_HERTZ 24 | #define LOOP_TIME_MS LOOP_TIME*1000 25 | #define LOOP_TIME_US LOOP_TIME*1000000 26 | #define DISPLAY_REFRESH_RATE 15 // Hz 27 | #define DISPLAY_TIME 1.0/(float)DISPLAY_REFRESH_RATE 28 | #define DISPLAY_TIME_MS DISPLAY_TIME*1000 29 | #define DISPLAY_TIME_US DISPLAY_TIME*1000000 30 | #define BAROMETER_REFRESH_RATE 2 // Hz 31 | #define BAROMETER_TIME 1.0/(float)BAROMETER_REFRESH_RATE 32 | #define BAROMETER_TIME_MS BAROMETER_TIME*1000 33 | #define BAROMETER_TIME_US BAROMETER_TIME*1000000 34 | 35 | enum JOYSTICK { 36 | UP, 37 | LEFT, 38 | DOWN, 39 | PRESS, 40 | RIGHT, 41 | NONE 42 | }; 43 | 44 | enum LCD { 45 | ORIENTATION_PORTRAIT, 46 | ORIENTATION_LANDSCAPE 47 | }; 48 | 49 | enum VARIO_STATE { 50 | HOME_VARIO, 51 | HOME_GPS, 52 | HOME_COMPASS, 53 | HOME_ALL, 54 | HOME_SETTINGS, 55 | VARIO, 56 | GPS, 57 | COMPASS, 58 | ALL, 59 | SETTINGS 60 | }; 61 | 62 | /* 63 | Hardware hookup 64 | 65 | LCD Pin Arduino Pin 66 | ------- ----------- 67 | 1 Vcc Vcc 68 | 2 Gnd Gnd 69 | 3 Gnd Gnd or N/C 70 | 4 N/C 71 | 5 N/C 72 | 6 LED (backlight) D3 -> not available on my LCD ? 73 | 7 CLK GPIO18 (SCK) 74 | 8 SDI GPIO23 (MOSI) 75 | 9 RS GPIO19 76 | 10 RST GPIO4 77 | 11 CS GPIO5 78 | */ 79 | 80 | JOYSTICK readButtons(int pin); 81 | void beep(float smoothed_ascent_rate); 82 | // Screen res 83 | //176*220 84 | //driver: ILI9225 -------------------------------------------------------------------------------- /vario/lib/README: -------------------------------------------------------------------------------- 1 | 2 | This directory is intended for project specific (private) libraries. 3 | PlatformIO will compile them to static libraries and link into executable file. 4 | 5 | The source code of each library should be placed in a an own separate directory 6 | ("lib/your_library_name/[here are source files]"). 7 | 8 | For example, see a structure of the following two libraries `Foo` and `Bar`: 9 | 10 | |--lib 11 | | | 12 | | |--Bar 13 | | | |--docs 14 | | | |--examples 15 | | | |--src 16 | | | |- Bar.c 17 | | | |- Bar.h 18 | | | |- library.json (optional, custom build options, etc) https://docs.platformio.org/page/librarymanager/config.html 19 | | | 20 | | |--Foo 21 | | | |- Foo.c 22 | | | |- Foo.h 23 | | | 24 | | |- README --> THIS FILE 25 | | 26 | |- platformio.ini 27 | |--src 28 | |- main.c 29 | 30 | and a contents of `src/main.c`: 31 | ``` 32 | #include 33 | #include 34 | 35 | int main (void) 36 | { 37 | ... 38 | } 39 | 40 | ``` 41 | 42 | PlatformIO Library Dependency Finder will find automatically dependent 43 | libraries scanning project source files. 44 | 45 | More information about PlatformIO Library Dependency Finder 46 | - https://docs.platformio.org/page/librarymanager/ldf.html 47 | -------------------------------------------------------------------------------- /vario/platformio.ini: -------------------------------------------------------------------------------- 1 | ; PlatformIO Project Configuration File 2 | ; 3 | ; Build options: build flags, source filter 4 | ; Upload options: custom upload port, speed and extra flags 5 | ; Library options: dependencies, extra library storages 6 | ; Advanced options: extra scripting 7 | ; 8 | ; Please visit documentation for the other options and examples 9 | ; https://docs.platformio.org/page/projectconf.html 10 | 11 | [env:esp32doit-devkit-v1] 12 | platform = espressif32 13 | board = esp32doit-devkit-v1 14 | framework = arduino 15 | monitor_speed = 115200 16 | lib_deps = 17 | lowpowerlab/BMP180@0.0.0-alpha+sha.efac46bd8d 18 | Wire @ ^1.0 19 | SPI 20 | nkawu/TFT 22 ILI9225@^1.4.4 21 | -------------------------------------------------------------------------------- /vario/src/barometer.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | SFE_BMP180 baro; 4 | 5 | double baseline_pressure; 6 | double baseline_altitude; 7 | 8 | double last_pressure; 9 | double last_altitude; 10 | 11 | double last_altitude_measure_time; 12 | 13 | float sea_level_pressure = 1013.25; 14 | 15 | 16 | int setupBarometer() { 17 | if (baro.begin()) { 18 | baseline_pressure = getAbsolutePressure(); 19 | last_altitude = getAltitudeDelta(); 20 | return 0; 21 | } 22 | else { 23 | return -1; 24 | } 25 | } 26 | 27 | double getTemperature() { 28 | char status; 29 | double T; 30 | 31 | // First get a temperature measurment 32 | // If successful, the nb of ms to wait is returned 33 | // Otherwise, 0 is returned 34 | status = baro.startTemperature(); 35 | if (status == 0) return(-1); 36 | 37 | // wait for the measurement to complete 38 | delay(status); 39 | 40 | // Retrieve the completed temparature measurement: 41 | // Note that the measurement is stored in the variable T 42 | // Use '&T' to provide the address of T to the function 43 | // Returns 1 if successful, 0 otherwise 44 | status = baro.getTemperature(T); 45 | if (status == 0) return(-1); 46 | 47 | return(T); 48 | } 49 | 50 | double getAbsolutePressure() { 51 | char status; 52 | double T,P; 53 | 54 | T = getTemperature(); 55 | if (T == -1) return(-1); 56 | 57 | // Start the pressure measurement: 58 | // The parameter is the oversampling setting, from 0 to 3 (higher res, longest wait) 59 | // If request if successful, the number of ms to wait is returned, 0 otherwise 60 | status = baro.startPressure(3); 61 | if (status == 0) return(-1); 62 | 63 | delay(status); 64 | 65 | // Retrieve the completed pressure measurement: 66 | // Note that the measurement is stored in the variable P 67 | // Use '&P' to provide the address of P 68 | // Note that the function requires the previous temperature measurement (T) 69 | // If temperature is stable, you can do one temperature measurement for a number of pressure measurements 70 | // Returns 1 if successful, 0 otherwise 71 | 72 | status = baro.getPressure(P, T); 73 | 74 | if (status == 0) return(-1); 75 | 76 | return(P); 77 | } 78 | 79 | double getAbsolutePressure(double temp) { 80 | char status; 81 | double P; 82 | 83 | // Start the pressure measurement: 84 | // The parameter is the oversampling setting, from 0 to 3 (higher res, longest wait) 85 | // If request if successful, the number of ms to wait is returned, 0 otherwise 86 | status = baro.startPressure(3); 87 | if (status == 0) return(-1); 88 | 89 | delay(status); 90 | 91 | // Retrieve the completed pressure measurement: 92 | // Note that the measurement is stored in the variable P 93 | // Use '&P' to provide the address of P 94 | // Note that the function requires the previous temperature measurement (T) 95 | // If temperature is stable, you can do one temperature measurement for a number of pressure measurements 96 | // Returns 1 if successful, 0 otherwise 97 | status = baro.getPressure(P, temp); 98 | 99 | if (status == 0) return(-1); 100 | 101 | return(P); 102 | } 103 | 104 | double getAltitudeDelta() { 105 | double P; 106 | P = getAbsolutePressure(); 107 | if (P == -1) return -1; 108 | 109 | last_altitude_measure_time = millis(); 110 | 111 | return(baro.altitude(P, baseline_pressure)); 112 | } 113 | 114 | double getAltitudeDelta(double pressure) { 115 | last_altitude_measure_time = millis(); 116 | 117 | return(baro.altitude(pressure, baseline_pressure)); 118 | } 119 | 120 | double getAltitude() { 121 | double P; 122 | P = getAbsolutePressure(); 123 | if (P == -1) return -1; 124 | 125 | return(baro.altitude(P, sea_level_pressure)); 126 | } 127 | 128 | double getAltitude(double pressure) { 129 | return(baro.altitude(pressure, sea_level_pressure)); 130 | } 131 | 132 | // Returnes the rate of sacent (climb or sink) 133 | // in m/s 134 | double getAscentRate(double last_reading_time) { 135 | double delta_time = millis() - last_reading_time; 136 | //Serial.println(delta_time); 137 | double altitude = getAltitude(); 138 | double delta_alt = last_altitude - altitude; 139 | last_altitude = altitude; 140 | 141 | // convert delta_time to second 142 | delta_time /= 1000.0; 143 | //Serial.println(delta_time); 144 | 145 | return(delta_alt / delta_time); 146 | } 147 | 148 | double getAscentRate(double altitude, unsigned long last_reading_time) { 149 | unsigned long delta_time = millis() - last_reading_time; 150 | //Serial.println(delta_time); 151 | double delta_alt = last_altitude - altitude; 152 | last_altitude = altitude; 153 | 154 | // convert delta_time to second 155 | delta_time /= 1000.0; 156 | //Serial.println(delta_time); 157 | 158 | return(delta_alt / delta_time); 159 | } 160 | 161 | -------------------------------------------------------------------------------- /vario/src/display.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | // Use software SPI (slower) 4 | //TFT_22_ILI9225 tft = TFT_22_ILI9225(TFT_RST, TFT_RS, TFT_CS, TFT_SDI, TFT_CLK, TFT_LED); 5 | // Use hardware SPI (library has been modified in TFT_22_ILI8225.cpp l311) 6 | TFT_22_ILI9225 tft = TFT_22_ILI9225(TFT_RST, TFT_RS, TFT_CS, TFT_SDI, TFT_CLK, TFT_LED); 7 | 8 | void setupDisplay(int orientation, uint8_t * font) { 9 | tft.begin(); 10 | tft.setOrientation(orientation); 11 | tft.setFont(font); 12 | } 13 | 14 | void clearDisplay() { 15 | tft.clear(); 16 | } 17 | 18 | void displayStr(uint16_t x, uint16_t y, String msg) { 19 | tft.drawText(x, y, msg); 20 | } 21 | 22 | void displayStatusBar() { 23 | tft.fillRectangle(0, 0, tft.maxX()-1, 25, COLOR_WHITE); 24 | tft.fillRectangle(1, 1, tft.maxX()-2, 24, COLOR_DARKGRAY); 25 | tft.drawBitmap(5, 2, up_right_arrow, 25, 25, COLOR_WHITE); 26 | tft.drawText((tft.maxX()/2)-25, 5, "17:24"); 27 | tft.drawBitmap(190-25, 2, sd_card, 25, 25, COLOR_WHITE); 28 | tft.drawBitmap(190, 2, battery, 24, 24, COLOR_WHITE); 29 | } 30 | 31 | void displayMenu(int state) { 32 | //displayStatusBar(); 33 | tft.drawCircle(25, tft.maxY()/2, 22, COLOR_LIGHTCYAN); 34 | tft.drawCircle(tft.maxX()-25, tft.maxY()/2, 22, COLOR_LIGHTCYAN); 35 | tft.drawCircle(tft.maxX()/2, tft.maxY()/2, 56, COLOR_WHITE); 36 | 37 | switch (state) 38 | { 39 | case 0: // VARIO 40 | tft.drawBitmap((tft.maxX()/2)-(96/2), (tft.maxY()/2)-(96/2), barometer_big, 96, 96, COLOR_DARKCYAN); 41 | tft.drawText((tft.maxX()/2)-(30), 160, "VARIO"); 42 | break; 43 | case 1: // COMPASS 44 | tft.drawBitmap((tft.maxX()/2)-(96/2), (tft.maxY()/2)-(96/2), compass_big, 96, 96, COLOR_BROWN); 45 | tft.drawText((tft.maxX()/2)-(40), 160, "COMPASS"); 46 | break; 47 | case 2: // GPS 48 | tft.drawBitmap((tft.maxX()/2)-(96/2), (tft.maxY()/2)-(96/2), gps_big, 96, 96, COLOR_RED); 49 | tft.drawText((tft.maxX()/2)-(30), 160, "GPS"); 50 | break; 51 | case 3: // ALL 52 | break; 53 | case 4: // SETTINGS 54 | tft.drawBitmap((tft.maxX()/2)-(96/2), (tft.maxY()/2)-(96/2), settings_big, 96, 96, COLOR_DARKGRAY); 55 | tft.drawText((tft.maxX()/2)-(45), 160, "SETTINGS"); 56 | } 57 | 58 | // Display right item 59 | int next_state = state + 1; 60 | if (next_state > 4) next_state = 0; 61 | switch (next_state) 62 | { 63 | case 0: // VARIO 64 | tft.drawBitmap(tft.maxX()-25-(36/2), (tft.maxY()/2)-(36/2), barometer_small, 36, 36, COLOR_DARKCYAN); 65 | break; 66 | case 1: // COMPASS 67 | tft.drawBitmap(tft.maxX()-25-(36/2), (tft.maxY()/2)-(36/2), compass_small, 36, 36, COLOR_BROWN); 68 | break; 69 | case 2: // GPS 70 | tft.drawBitmap(tft.maxX()-25-(36/2), (tft.maxY()/2)-(36/2), gps_small, 36, 36, COLOR_RED); 71 | 72 | break; 73 | case 3: // ALL 74 | break; 75 | case 4: // SETTINGS 76 | tft.drawBitmap(tft.maxX()-25-(36/2), (tft.maxY()/2)-(36/2), settings_small, 36, 36, COLOR_DARKGRAY); 77 | } 78 | 79 | // Display right item 80 | next_state = state - 1; 81 | if (next_state < 0) next_state = 4; 82 | switch (next_state) 83 | { 84 | case 0: // VARIO 85 | tft.drawBitmap(25-(36/2), (tft.maxY()/2)-(36/2), barometer_small, 36, 36, COLOR_DARKCYAN); 86 | break; 87 | case 1: // COMPASS 88 | tft.drawBitmap(25-(36/2), (tft.maxY()/2)-(36/2), compass_small, 36, 36, COLOR_BROWN); 89 | break; 90 | case 2: // GPS 91 | tft.drawBitmap(25-(36/2), (tft.maxY()/2)-(36/2), gps_small, 36, 36, COLOR_RED); 92 | break; 93 | case 3: // ALL 94 | break; 95 | case 4: // SETTINGS 96 | tft.drawBitmap(25-(36/2), (tft.maxY()/2)-(36/2), settings_small, 36, 36, COLOR_DARKGRAY); 97 | break; 98 | } 99 | 100 | } 101 | 102 | /* ############# VARIO ############# */ 103 | void displayVarioPage(){ 104 | 105 | // Ascent rate, middle 106 | displayStr(170, 50, "m/s"); 107 | 108 | // Temperature, lower middle 109 | tft.drawBitmap(60, (tft.maxY()/2)+15, thermometer_small, 25, 25, COLOR_WHITE); 110 | displayStr(150, (tft.maxY()/2)+20, "C"); 111 | 112 | // Pressure, left of the screen 113 | tft.drawBitmap(30, tft.maxY()-48, barometer_25, 25, 25, COLOR_WHITE); 114 | displayStr(65, 155, "hPa"); 115 | 116 | // Altitude, right of the screen 117 | tft.drawBitmap(tft.maxX()-58, tft.maxY()-48, mountain, 25, 25, COLOR_WHITE); 118 | 119 | displayStr(200, 155, "m"); 120 | } 121 | 122 | void displayVarioInfos(float altitude, float pressure, float temperature, float ascent_rate) { 123 | tft.drawRectangle(0, 100, tft.maxX()-1, tft.maxY()-1, COLOR_GRAY); 124 | 125 | tft.drawRectangle(0, 25, tft.maxX()-1, 99, COLOR_WHITE); 126 | // Ascent rate 127 | // Draw rectangle before to avoid seeing the bitmap below 128 | tft.fillRectangle(15, 35, 15+48, 45+48, COLOR_BLACK); 129 | if (ascent_rate > 0) tft.drawBitmap(15, 35, ascend, 48, 48, COLOR_GREEN); 130 | else tft.drawBitmap(15, 35, descend, 48, 48, COLOR_RED); 131 | 132 | displayStr(90, STATUS_BAR_OFFSET_Y+15, String(ascent_rate, 1)); 133 | 134 | // Temp 135 | displayStr(90, (tft.maxY()/2)+20, String(temperature, 1)); 136 | 137 | // Pressure, temp, altitude 138 | displayStr(130, STATUS_BAR_OFFSET_Y+120, String((int)altitude)); 139 | displayStr(10, STATUS_BAR_OFFSET_Y+120, String((int)pressure)); 140 | } -------------------------------------------------------------------------------- /vario/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | // Last measure time 4 | double last_time; 5 | 6 | // Loop timing 7 | unsigned long loop_time; 8 | unsigned long display_time; 9 | unsigned long barometer_time; 10 | 11 | bool first_time_state = false; 12 | 13 | bool time_to_display = false; 14 | 15 | // Variometer buzzer 16 | float climb_threshold = 0.5; 17 | float sink_threshold = -1.8; 18 | float start_freq = 556.0; 19 | float final_freq = 1605.0; 20 | float start_beeps_per_second = 0.1; 21 | float final_beeps_per_second = 3.9; 22 | float max_climb = 10.0; 23 | float time_started_tone = 0.0; 24 | float curr_freq = 556.0; 25 | float curr_waiting_time = 1000.0; 26 | 27 | double last_smoother_ascent_rate = 0.0; 28 | double avg_ascent_rate = 0.0; 29 | const float SMOOTHING_WEIGHT = 0.15; 30 | 31 | JOYSTICK joystick_previous_state = NONE; 32 | 33 | VARIO_STATE vario_state = VARIO; 34 | // Different previous state to have a first update 35 | VARIO_STATE previous_vario_state = HOME_SETTINGS; 36 | 37 | void setup() { 38 | Serial.begin(115200); 39 | delay(500); 40 | Serial.print("VARIOMETER v0.1 booting.."); 41 | setupDisplay(ORIENTATION_LANDSCAPE, Terminal12x16); 42 | displayStr(20, 50, "VARIOMETER v0.1"); 43 | displayStr(50, 80, "booting.."); 44 | 45 | pinMode(JOYSTICK_PIN, INPUT); 46 | 47 | // Setup buzzer 48 | ledcSetup(BUZZER_CHANNEL, 10000, 8); 49 | ledcAttachPin(BUZZER_PIN, BUZZER_CHANNEL); 50 | ledcWriteTone(BUZZER_CHANNEL, 400); 51 | 52 | setupBarometer(); 53 | delay(500); 54 | ledcWriteTone(BUZZER_CHANNEL, 0); 55 | last_time = millis(); 56 | display_time = micros(); 57 | } 58 | 59 | void loop() { 60 | Serial.print("loop() running on core "); 61 | Serial.println(xPortGetCoreID()); 62 | 63 | loop_time = micros(); 64 | 65 | /* 66 | Serial.println(""); 67 | Serial.println("###################"); 68 | 69 | Serial.print("Temperature: "); 70 | Serial.println(getTemperature()); 71 | 72 | Serial.print("Pressure: "); 73 | Serial.println(getAbsolutePressure()); 74 | 75 | Serial.print("Altitude: "); 76 | Serial.println(getAltitude()); 77 | 78 | Serial.print("Altitude delta: "); 79 | Serial.println(getAltitudeDelta()); 80 | */ 81 | 82 | /* Read input */ 83 | JOYSTICK b = readButtons(JOYSTICK_PIN); 84 | if (b != NONE) Serial.println(b); 85 | 86 | /* Changing state */ 87 | switch(vario_state){ 88 | case HOME_VARIO: 89 | if(b == RIGHT) vario_state = HOME_GPS; 90 | else if(b == LEFT) vario_state = HOME_SETTINGS; 91 | else if(b == PRESS) vario_state = VARIO; 92 | break; 93 | case HOME_GPS: 94 | if(b == RIGHT) vario_state = HOME_COMPASS; 95 | else if(b == LEFT) vario_state = HOME_VARIO; 96 | else if(b == PRESS) vario_state = GPS; 97 | break; 98 | case HOME_COMPASS: 99 | if(b == RIGHT) vario_state = HOME_ALL; 100 | else if(b == LEFT) vario_state = HOME_GPS; 101 | else if(b == PRESS) vario_state = COMPASS; 102 | break; 103 | case HOME_ALL: 104 | if(b == RIGHT) vario_state = HOME_SETTINGS; 105 | else if(b == LEFT) vario_state = HOME_COMPASS; 106 | else if(b == PRESS) vario_state = ALL; 107 | break; 108 | case HOME_SETTINGS: 109 | if(b == RIGHT) vario_state = HOME_VARIO; 110 | else if(b == LEFT) vario_state = HOME_ALL; 111 | else if(b == PRESS) vario_state = SETTINGS; 112 | break; 113 | case VARIO: 114 | 115 | break; 116 | case GPS: 117 | 118 | break; 119 | case COMPASS: 120 | 121 | break; 122 | case ALL: 123 | 124 | break; 125 | case SETTINGS: 126 | 127 | break; 128 | } 129 | 130 | // TODO: add time check maybe, to refresh data when not on menu 131 | if (vario_state != previous_vario_state) { 132 | first_time_state = true; 133 | previous_vario_state = vario_state; 134 | long time = micros(); 135 | clearDisplay(); 136 | Serial.print("Clearing takes: "); 137 | Serial.print((micros()-time)/1000.0); 138 | Serial.println(" ms"); 139 | } 140 | else first_time_state = false; 141 | 142 | if (micros() > display_time + DISPLAY_TIME_US) { 143 | time_to_display = true; 144 | display_time = micros(); 145 | } 146 | else time_to_display = false; 147 | 148 | switch(vario_state){ 149 | case HOME_VARIO: 150 | if (first_time_state) displayMenu(HOME_VARIO); 151 | break; 152 | case HOME_COMPASS: 153 | if (first_time_state) displayMenu(HOME_COMPASS); 154 | break; 155 | case HOME_GPS: 156 | if (first_time_state) displayMenu(HOME_GPS); 157 | break; 158 | case HOME_ALL: 159 | if (first_time_state) displayMenu(HOME_ALL); 160 | break; 161 | case HOME_SETTINGS: 162 | if (first_time_state) displayMenu(HOME_SETTINGS); 163 | break; 164 | case VARIO: 165 | if (first_time_state) { 166 | displayStatusBar(); 167 | displayVarioPage(); 168 | barometer_time = micros(); 169 | } 170 | double temperature = getTemperature(); 171 | double pressure = getAbsolutePressure(temperature); 172 | double altitude = getAltitude(pressure); 173 | double ascent_rate = getAscentRate(altitude, last_time); 174 | 175 | Serial.print("Ascent rate: "); 176 | Serial.print(String(ascent_rate, 1)); 177 | Serial.println(" m/s"); 178 | 179 | float smoothed_ascent_rate = SMOOTHING_WEIGHT * ascent_rate + (1-SMOOTHING_WEIGHT) * last_smoother_ascent_rate; 180 | last_smoother_ascent_rate = smoothed_ascent_rate; 181 | avg_ascent_rate += smoothed_ascent_rate; 182 | avg_ascent_rate /= 2.0; 183 | 184 | Serial.print("Smoothed ascent rate: "); 185 | Serial.print(String(smoothed_ascent_rate, 1)); 186 | Serial.println(" m/s"); 187 | 188 | if (time_to_display){ 189 | 190 | if (micros() > barometer_time + BAROMETER_TIME_US) { 191 | // Test fit with max values 192 | //displayVarioInfos(10080.0, 1085.0, -20.5, ascent_rate); 193 | displayVarioInfos(altitude, pressure, temperature, avg_ascent_rate); 194 | beep(avg_ascent_rate); 195 | barometer_time = micros(); 196 | } 197 | } 198 | break; 199 | /* 200 | case GPS: { 201 | break; 202 | } 203 | case COMPASS: 204 | {} 205 | break; 206 | case ALL: 207 | {} 208 | break; 209 | case SETTINGS: 210 | {} 211 | break; 212 | */ 213 | } 214 | //} 215 | 216 | 217 | last_time = millis(); 218 | //while(micros() < loop_time + LOOP_TIME_US) {}// wait 219 | /* 220 | Serial.print("Loop time: "); 221 | Serial.print((micros() - loop_time)/1000.0); 222 | Serial.println("ms"); 223 | */ 224 | } 225 | 226 | JOYSTICK readButtons(int pin) { 227 | int c = analogRead(JOYSTICK_PIN); 228 | //Serial.println(c); 229 | JOYSTICK b = NONE; 230 | if(c > 2800) b = UP; 231 | else if(c < 2700 && c > 2600) b = LEFT; 232 | else if(c < 2200 && c > 2100) b = DOWN; 233 | else if(c < 2000 && c > 1900) b = PRESS; 234 | else if(c < 1850 && c > 1750) b = RIGHT; 235 | 236 | if (joystick_previous_state != b){ 237 | joystick_previous_state = b; 238 | return b; 239 | } 240 | else{ 241 | joystick_previous_state = b; 242 | return NONE; 243 | } 244 | } 245 | 246 | void beep(float smoothed_ascent_rate) { 247 | // TEST: to move to function 248 | // todo: wait for next bps time before calling function again 249 | if (millis() - time_started_tone > curr_waiting_time) { 250 | if (smoothed_ascent_rate > climb_threshold) { 251 | // Calculate bps 252 | float bps = smoothed_ascent_rate * final_beeps_per_second / max_climb; 253 | 254 | // Calculate waiting time 255 | curr_waiting_time = 1.0/bps*1000.0; 256 | 257 | // Calculate freq 258 | curr_freq = smoothed_ascent_rate * final_freq / max_climb; 259 | 260 | // 1/bps to get the duration, * 1000 to switch to ms$ 261 | ledcWriteTone(BUZZER_CHANNEL, curr_freq); 262 | //tone(BUZZER_PIN, curr_freq, curr_waiting_time); 263 | } 264 | else if (smoothed_ascent_rate < sink_threshold) { 265 | //tone(BUZZER_PIN, 1000, 200); 266 | } 267 | else{ 268 | curr_waiting_time = 1000.0; 269 | ledcWriteTone(BUZZER_CHANNEL, 400); 270 | //tone(BUZZER_PIN, 400, curr_waiting_time); 271 | } 272 | time_started_tone = millis(); 273 | } 274 | } 275 | -------------------------------------------------------------------------------- /vario/test/README: -------------------------------------------------------------------------------- 1 | 2 | This directory is intended for PlatformIO Unit Testing and project tests. 3 | 4 | Unit Testing is a software testing method by which individual units of 5 | source code, sets of one or more MCU program modules together with associated 6 | control data, usage procedures, and operating procedures, are tested to 7 | determine whether they are fit for use. Unit testing finds problems early 8 | in the development cycle. 9 | 10 | More information about PlatformIO Unit Testing: 11 | - https://docs.platformio.org/page/plus/unit-testing.html 12 | --------------------------------------------------------------------------------