Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:examples:sensor:potentiometer [2015/11/09 14:48] heikopikneren:examples:sensor:potentiometer [2020/07/20 09:00] (current) – external edit 127.0.0.1
Line 1: Line 1:
-~~PB~~ +<pagebreak> 
-====== Potentsiometer ======+====== Potentiometer ======
  
-//Necessary knowledge : [HW] [[en:hardware:homelab:sensor]], [HW] [[en:hardware:homelab:digi]], [ELC] [[en:electronics:voltage_divider]], [AVR] [[en:avr:adc]], [LIB] [[en:software:homelab:library:adc]], [LIB] [[en:software:homelab:library:module:segment_display]]//+//Necessary knowledge:  
 +[HW] [[en:hardware:homelab:digi]], 
 +[ELC] [[en:electronics:voltage_divider]], 
 +[AVR] [[en:avr:adc]],  
 +[LIB] [[en:software:homelab:library:adc]], [LIB] [[en:software:homelab:library:module:segment_display]]//
  
 ===== Theory ===== ===== Theory =====
Line 28: Line 32:
  
 <code c> <code c>
-// 
 // Starting the ADC // Starting the ADC
-// 
 void adc_init(adc_reference reference, adc_prescale prescale) void adc_init(adc_reference reference, adc_prescale prescale)
 { {
Line 40: Line 42:
 } }
  
-// 
 // Converting the values of selected channel // Converting the values of selected channel
-// 
 unsigned short adc_get_value(unsigned char channel) unsigned short adc_get_value(unsigned char channel)
 {  {
en/examples/sensor/potentiometer.1447080514.txt.gz · Last modified: 2020/07/20 09:00 (external edit)
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0