-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
654 lines (637 loc) · 33.4 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
<!Doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>AVR GUIDE - QEEWiki</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="description" content="Guide For Working With AVR Microcontrollers"/>
<meta name="keywords"
content="atmega8, atmega168, atmega328, atmega328p, interrupt, timer, adc, analog comparator, pwm, fast pwm, phase correct pwm, spi, uart, i2c, eeprom, tutorial, datasheet"/>
<meta name="author" content="Chayan Mistry">
<meta property="og:url" content="https://avr-guide.github.io"/>
<meta property="og:site_name" content="AVR GUIDE - QEEWiki"/>
<link rel="icon" href="assets/img/favicon.ico">
<!-- Place favicon.ico in the root directory -->
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/css/style.css">
<link rel="stylesheet" href="assets/css/responsive.css">
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-L8GR6MPRF3"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-L8GR6MPRF3');
</script>
<!-- Google auto ads -->
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3224119074707344"
crossorigin="anonymous"></script>
</head>
<body>
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
<symbol id="check2" viewBox="0 0 16 16">
<path
d="M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z"></path>
</symbol>
<symbol id="circle-half" viewBox="0 0 16 16">
<path d="M8 15A7 7 0 1 0 8 1v14zm0 1A8 8 0 1 1 8 0a8 8 0 0 1 0 16z"></path>
</symbol>
<symbol id="moon-stars-fill" viewBox="0 0 16 16">
<path
d="M6 .278a.768.768 0 0 1 .08.858 7.208 7.208 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277.527 0 1.04-.055 1.533-.16a.787.787 0 0 1 .81.316.733.733 0 0 1-.031.893A8.349 8.349 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.752.752 0 0 1 6 .278z"></path>
<path
d="M10.794 3.148a.217.217 0 0 1 .412 0l.387 1.162c.173.518.579.924 1.097 1.097l1.162.387a.217.217 0 0 1 0 .412l-1.162.387a1.734 1.734 0 0 0-1.097 1.097l-.387 1.162a.217.217 0 0 1-.412 0l-.387-1.162A1.734 1.734 0 0 0 9.31 6.593l-1.162-.387a.217.217 0 0 1 0-.412l1.162-.387a1.734 1.734 0 0 0 1.097-1.097l.387-1.162zM13.863.099a.145.145 0 0 1 .274 0l.258.774c.115.346.386.617.732.732l.774.258a.145.145 0 0 1 0 .274l-.774.258a1.156 1.156 0 0 0-.732.732l-.258.774a.145.145 0 0 1-.274 0l-.258-.774a1.156 1.156 0 0 0-.732-.732l-.774-.258a.145.145 0 0 1 0-.274l.774-.258c.346-.115.617-.386.732-.732L13.863.1z"></path>
</symbol>
<symbol id="sun-fill" viewBox="0 0 16 16">
<path
d="M8 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM8 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 0zm0 13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 13zm8-5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5zM3 8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2A.5.5 0 0 1 3 8zm10.657-5.657a.5.5 0 0 1 0 .707l-1.414 1.415a.5.5 0 1 1-.707-.708l1.414-1.414a.5.5 0 0 1 .707 0zm-9.193 9.193a.5.5 0 0 1 0 .707L3.05 13.657a.5.5 0 0 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0zm9.193 2.121a.5.5 0 0 1-.707 0l-1.414-1.414a.5.5 0 0 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707zM4.464 4.465a.5.5 0 0 1-.707 0L2.343 3.05a.5.5 0 1 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .708z"></path>
</symbol>
</svg>
<div id="wrapper">
<div class="wrap-container ">
<header class="navbar">
<h4>
<a href="/">QEEWiki</a>
<button class="navbar-toggler d-block d-md-none" type="button" data-bs-toggle="offcanvas"
data-bs-target="#offcanvasNavbar" aria-controls="offcanvasNavbar"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
</h4>
</header>
<div class="d-flex">
<nav class="navbar" id="sidebar">
<div class="container-fluid px-md-0">
<div class="offcanvas offcanvas-end" tabindex="-1" id="offcanvasNavbar"
aria-labelledby="offcanvasNavbarLabel">
<div class="offcanvas-header border-bottom d-flex d-md-none">
<h5 class="offcanvas-title" id="offcanvasNavbarLabel">QEEWiki</h5>
<button type="button" class="btn-close" data-bs-dismiss="offcanvas"
aria-label="Close"></button>
</div>
<div class="offcanvas-body px-md-0 pt-0">
<ul class="navbar-nav justify-content-end flex-grow-1">
<li class="nav-item">
<b>Navigation</b>
<ul>
<li><a href="https://chayanforyou.github.io/">Home</a></li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle show" role="button"
data-bs-toggle="dropdown"
aria-expanded="true">
AVR Guide
</a>
<ul class="dropdown-menu show ">
<li><a class="dropdown-item" href="#">AVR Basics</a></li>
<li><a class="dropdown-item" href="#">Digital I/O</a></li>
<li><a class="dropdown-item" href="#interrupts">Interrupts</a></li>
<li><a class="dropdown-item" href="#">Timers</a></li>
<li><a class="dropdown-item" href="#">Analog I/O</a></li>
<li><a class="dropdown-item" href="#">Communication</a></li>
<li><a class="dropdown-item" href="#">Other</a></li>
</ul>
</li>
<li><a href="#">Usefull Engineering Stuff</a></li>
</ul>
</li>
<li class="nav-item">
<b>Resources</b>
<ul>
<li><a href="https://www.sparkfun.com/">Sparkfun</a></li>
<li><a href="https://arduino.cc/en/Reference/HomePage">Arduino Reference</a>
</li>
<li><a href="https://www.eevblog.com/">EEVBlog</a></li>
<li><a href="https://tahmidmc.blogspot.com/">Tahmid's Blog</a></li>
<li><a href="https://labprojectsbd.com/">Lab Projects BD</a></li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle show" role="button" aria-expanded="true">Atmel</a>
<ul class="dropdown-menu show ">
<li><a class="dropdown-item" href="/assets/docs/ATmega8A.pdf"
target="_blank" rel="nofollow">Atmega8 Datasheet</a></li>
<li><a class="dropdown-item"
href="/assets/docs/ATmega48A-PA-88A-PA-168A-PA-328-P.pdf"
target="_blank" rel="nofollow">ATMega168/328 Datasheet</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
</div>
</nav>
<main id="contentBox">
<nav aria-label="breadcrumb" id="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="#">Home</a></li>
<li class="breadcrumb-item"><a href="#">AVR Guide</a></li>
</ol>
</nav>
<div class="main-content">
<h3>AVR GUIDE</h3>
<p>This guide was written by me (Q) over several months and, it took way too many hours then I'd
like to
admit. The information was gathered from the data sheet, bench testing and from other sites that
I had come
across. This site is my way of giving back to the DIY community that helped me out so many
times, thanks
guys. Feel free to link to the information but please do not pass it off as your own.
<br/><br/>Cheers<br/>Q
</p>
<div class="ms-4">
<p style="color:rgb(255,0,0);background-color:rgb(255,229,153); " class="p-2">
NOTE: <b>*</b> = Unfortunately, AVR GUIDE - QEEWiki was removed from Google Sites after Feb
2021.<br>I'm
able to restore it using Wayback Machine. And here is the new start.
</p>
<h5>Maintainer:</h5>
<p>
<strong>Chayan Mistry</strong><br>
<strong>Email:</strong> <a href="mailto:[email protected]">[email protected]</a>
</p>
<p>Feel free to reach out if you have any questions or need assistance with the AVR GUIDE.</p>
</div>
<h4 class="my-5 fw-semibold">TABLE OF CONTENTS</h4>
<h5 class="fw-semibold">AVR Basics:</h5>
<div class="chapters">
<div class="chapter py-2">
<div class="ms-4">
<h4>
<a href="/getting-started">
<b>1.0 - What You Need To Get Started:</b>
</a>
</h4>
</div>
<div class="ms-4">
<div class="ms-4">What you need Software/Hardware wise to get started</div>
</div>
</div>
<div class="chapter py-2">
<div class="ms-4">
<h4>
<a href="/recommended-reading-order">
<b>1.1 - Recommended Reading Order:</b>
</a>
</h4>
</div>
<div class="ms-4">
<div class="ms-4">If your New to AVRs this is the order I recommend reading my tutorials
in
</div>
</div>
</div>
<div class="chapter py-2">
<div class="ms-4">
<h4>
<a href="/registers">
<b>1.2 - Working With Binary Numbers:</b>
</a>
</h4>
</div>
<div class="ms-4">
<div class="ms-4">The basics of data storage and how we could understand it as humans
</div>
</div>
</div>
<div class="chapter py-2">
<div class="ms-4">
<h4>
<a href="/c-bit-math">
<b>1.3 - C Bit Math:</b>
</a>
</h4>
</div>
<div class="ms-4">
<div class="ms-4">The hardest part of microcontroller programming, but the most
important thing to
understand
</div>
</div>
</div>
<div class="chapter py-2">
<div class="ms-4">
<h4>
<a href="/advance-bit-math">
<b>1.4 - Advance Bit Math:</b>
</a>
</h4>
</div>
<div class="ms-4">
<div class="ms-4">Deals mainly with abbreviations and shortcuts and using multiple
operands together
</div>
</div>
</div>
<div class="chapter py-2">
<div class="ms-4">
<h4>
<a href="/avr-registers">
<b>1.5 - Working With AVR Registers:</b>
</a>
</h4>
</div>
<div class="ms-4">
<div class="ms-4">How special registers work</div>
</div>
</div>
<div class="chapter py-2">
<div class="ms-4">
<h4>
<a href="/avr-basic-hookup">
<b>1.6 - Basic Hookup:</b>
</a>
</h4>
</div>
<div class="ms-4">
<div class="ms-4">Covers the basic power hookup and the ISP hookup</div>
</div>
</div>
<div class="chapter py-2">
<div class="ms-4">
<h4>
<a href="/getting-started-with-avr-software">
<b>1.7 - Setting Up AVR Software:</b>
</a>
</h4>
</div>
<div class="ms-4">
<div class="ms-4">How to program your Arduino from AVR Studios 4 and 5</div>
</div>
</div>
<div class="chapter py-2">
<div class="ms-4">
<h4>
<b>1.8 - A Few Notes On AVR Programming:</b>
</h4>
</div>
<div class="ms-4">
<div class="ms-4">A few important notes on AVR programming</div>
</div>
</div>
</div>
<div><br/></div>
<br/>
<h5 class="fw-semibold">Digital I/O:</h5>
<div class="chapters">
<div class="chapter py-2">
<div class="ms-4">
<h4>
<a href="/digital-outputs">
<b>2.0 - Digital Outputs:</b>
</a>
</h4>
</div>
<div class="ms-4">
<div class="ms-4">Covers Digital Output Hardware and Digital Output AVR Software Code
</div>
</div>
</div>
<div class="chapter py-2">
<div class="ms-4">
<h4>
<a href="/digital-inputs">
<b>2.1 - Digital Inputs:</b>
</a>
</h4>
</div>
<div class="ms-4">
<div class="ms-4">Covers Digital Input Hardware and Digital Input AVR Software Code
</div>
</div>
</div>
</div>
<div><br/></div>
<br/>
<h5 class="fw-semibold" id="interrupts">Interrupts:</h5>
<div class="chapters">
<div class="chapter py-2">
<div class="ms-4">
<h4>
<a href="/interrupts">
<b>3.0 - Interrupts:</b>
</a>
</h4>
</div>
<div class="ms-4">
<div class="ms-4">The basic theory of Interrupts in the AVR micro controller</div>
</div>
</div>
<div class="chapter py-2">
<div class="ms-4">
<h4>
<a href="/external-interrupts">
<b>3.1a - External Interrupts on the ATmega8:</b>
</a>
</h4>
</div>
<div class="ms-4">
<div class="ms-4">Covers the External Interrupts</div>
</div>
</div>
<div class="chapter py-2">
<div class="ms-4">
<h4>
<a href="/external-interrupts-on-the-atmega328">
<b>3.1b - External Interrupts on the ATmega168/328:</b>
</a>
</h4>
</div>
<div class="ms-4">
<div class="ms-4">Covers the External Interrupts and the new Pin Change Interrupts</div>
</div>
</div>
</div>
<div><br/></div>
<br/>
<h5 class="fw-semibold">Timers:</h5>
<div class="chapters">
<div class="chapter py-2">
<div class="ms-4">
<h4>
<a href="/common-timer-theory">
<b>4.0 - Common Timer/Counter/PWM Theory:</b>
</a>
</h4>
</div>
<div class="ms-4">
<div class="ms-4">Theory common to timers for both ATmega8 and ATmega168/328</div>
</div>
</div>
<div class="chapter py-2">
<div class="ms-4">
<h4>
<a href="/timer-on-the-atmega8">
<b>4.1a - Timers on the ATmega8:</b>
</a>
</h4>
</div>
<div class="ms-4">
<div class="ms-4">8 and 16 bit timers on the ATmega8</div>
</div>
</div>
<div class="chapter py-2">
<div class="ms-4">
<h4>
<a href="/timers-on-the-atmega328">
<b>4.1b - Timers on the ATmega168/328:</b>
</a>
</h4>
</div>
<div class="ms-4">
<div class="ms-4">8 and 16 bit timers on the ATmega168/328</div>
</div>
</div>
<div class="chapter py-2">
<div class="ms-4">
<h4>
<a href="/counters-atmega8">
<b>4.2a - Counters on the ATmega8:</b>
</a>
</h4>
</div>
<div class="ms-4">
<div class="ms-4">8 and 16 bit counters on the ATmega8</div>
</div>
</div>
<div class="chapter py-2">
<div class="ms-4">
<h4>
<a href="/counter-atmega328">
<b>4.2b - Counters ATmega168/328:</b>
</a>
</h4>
</div>
<div class="ms-4">
<div class="ms-4">8 and 16 bit counters on the ATmega168/328</div>
</div>
</div>
<div class="chapter py-2">
<div class="ms-4">
<h4>
<b>4.3a - Input Capture Unit on the ATmega8:</b>
</h4>
</div>
<div class="ms-4">
<div class="ms-4">A unit that can capture an event and give it a time-stamp on the
ATmega8
</div>
</div>
</div>
<div class="chapter py-2">
<div class="ms-4">
<h4>
<b>4.3b - Input Capture Unit on the ATmega168/328:</b>
</h4>
</div>
<div class="ms-4">
<div class="ms-4">A unit that can capture an event and give it a time-stamp on the
ATmega168/328
</div>
</div>
</div>
</div>
<div><br/></div>
<br/>
<h5 class="fw-semibold">Analog I/O:</h5>
<div class="chapters">
<div class="chapter py-2">
<div class="ms-4">
<h4>
<a href="/pwm-atmega8">
<b>5.0a - PWM (Pulse Width Modulator) on the ATmega8:</b>
</a>
</h4>
</div>
<div class="ms-4">
<div class="ms-4">The Closest thing to Analog outputs</div>
</div>
</div>
<div class="chapter py-2">
<div class="ms-4">
<h4>
<a href="/pwm-on-the-atmega328">
<b>5.0b - PWM (Pulse Width Modulator) on the ATmega168/328:</b>
</a>
</h4>
</div>
<div class="ms-4">
<div class="ms-4">The Closest thing to Analog outputs</div>
</div>
</div>
<div class="chapter py-2">
<div class="ms-4">
<h4>
<a href="/analog-input">
<b>5.1 - Analog Inputs:</b>
</a>
</h4>
</div>
<div class="ms-4">
<div class="ms-4">Measure incoming voltage levels from analog devices, aka ADC (Analog
to Digital
Converter)
</div>
</div>
</div>
<div class="chapter py-2">
<div class="ms-4">
<h4>
<a href="/analog-comparator-on-the-atmega8">
<b>5.2a - Analog Comparator on the ATmega8:</b>
</a>
</h4>
</div>
<div class="ms-4">
<div class="ms-4">A strange uncommonly used feature</div>
</div>
</div>
<div class="chapter py-2">
<div class="ms-4">
<h4>
<b>5.2b - Analog Comparator on the ATmega168/328:</b>
</h4>
</div>
<div class="ms-4">
<div class="ms-4">A strange uncommonly used feature</div>
</div>
</div>
</div>
<div><br/></div>
<br/>
<h5 class="fw-semibold">Communication:</h5>
<div class="chapters">
<div class="chapter py-2">
<div class="ms-4">
<h4>
<a href="/usart">
<b>6.0 - USARTS:</b>
</a>
</h4>
</div>
<div class="ms-4">
<div class="ms-4">Serial Communication protocol</div>
</div>
</div>
<div class="chapter py-2">
<div class="ms-4">
<h4>
<b>6.1 - I2C / TWI:</b>
</h4>
</div>
<div class="ms-4">
<div class="ms-4">A standard two wire buss protocol for controlling Slave devices</div>
</div>
</div>
<div class="chapter py-2">
<div class="ms-4">
<h4>
<a href="/spi">
<b>6.2 - SPI:</b>
</a>
</h4>
</div>
<div class="ms-4">
<div class="ms-4">Serial Peripheral Interface, a simple and common multi-slave control
protocol
</div>
</div>
</div>
</div>
<div><br/></div>
<br/>
<h5 class="fw-semibold">Other:</h5>
<div class="chapters">
<div class="chapter py-2">
<div class="ms-4">
<h4>
<b>7.0 - EEPROM:</b>
</h4>
</div>
<div class="ms-4">
<div class="ms-4">Write data to internal none-volatile memory</div>
</div>
</div>
<div class="chapter py-2">
<div class="ms-4">
<h4>
<b>7.1 - External Crystals/Resonators:</b>
</h4>
</div>
<div class="ms-4">
<div class="ms-4">Hooking up external clock sources</div>
</div>
</div>
<div class="chapter py-2">
<div class="ms-4">
<h4>
<b>7.2 - Fuse Bits:</b>
</h4>
</div>
<div class="ms-4">
<div class="ms-4">Blah, I woun't lie, I really don't want to write this tutorial, but
one day I will
</div>
</div>
</div>
</div>
<div><br/></div>
<br/>
</div>
</main>
</div>
</div>
</div>
<div class="dropdown position-fixed bottom-0 end-0 mb-3 me-3 mode-toggle" id="darkMoodDropdown">
<button class="btn btn-primary py-2 dropdown-toggle d-flex align-items-center" id="theme" type="button"
aria-expanded="false" data-bs-toggle="dropdown" aria-label="Toggle theme (light)">
<svg class="bi my-1 theme-icon-active" width="1em" height="1em">
<use href="#circle-half"></use>
</svg>
<span class="visually-hidden" id="theme-text">Toggle theme</span>
</button>
<ul class="dropdown-menu dropdown-menu-end shadow" aria-labelledby="theme-text" id="darkMoodDropdownMenu">
<li>
<button type="button" class="dropdown-item d-flex align-items-center" data-mode="light"
aria-pressed="false">
<svg class="bi me-2 opacity-50 theme-icon" width="1em" height="1em">
<use href="#sun-fill"></use>
</svg>
Light
<svg class="bi ms-auto d-none" width="1em" height="1em">
<use href="#check2"></use>
</svg>
</button>
</li>
<li>
<button type="button" class="dropdown-item d-flex align-items-center" data-mode="dark" aria-pressed="false">
<svg class="bi me-2 opacity-50 theme-icon" width="1em" height="1em">
<use href="#moon-stars-fill"></use>
</svg>
Dark
<svg class="bi ms-auto d-none" width="1em" height="1em">
<use href="#check2"></use>
</svg>
</button>
</li>
<li>
<button type="button" class="dropdown-item d-flex align-items-center active" data-mode="auto"
aria-pressed="true">
<svg class="bi me-2 opacity-50 theme-icon" width="1em" height="1em">
<use href="#circle-half"></use>
</svg>
Auto
<svg class="bi ms-auto d-none" width="1em" height="1em">
<use href="#check2"></use>
</svg>
</button>
</li>
</ul>
</div>
<script src="assets/js/jquery-3.5.1.min.js"></script>
<script src="assets/js/popper.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/main.js"></script>
</body>
</html>