<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pl-pl">
<link rel="self" type="application/atom+xml" href="https://forum.atnel.pl/feed.php?f=47&amp;t=10990&amp;mode" />

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2015-03-09T21:03:57+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=47&amp;t=10990&amp;mode</id>
<entry>
<author><name><![CDATA[marekm]]></name></author>
<updated>2015-03-09T21:03:57+01:00</updated>
<published>2015-03-09T21:03:57+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10990&amp;p=122828#p122828</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10990&amp;p=122828#p122828"/>
<title type="html"><![CDATA[Re: Arduino i Codeblock]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10990&amp;p=122828#p122828"><![CDATA[
No właśnie o ten program się rozchodzi, dlaczego ten sam kod w arduino się kompiluje, a w CodeBlocks Arduino IDE wywala błąd. Może mógłby ktoś to sprawdzić u siebie, jeśli posiada jakieś arduino?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=147">marekm</a> — 9 mar 2015, o 21:03</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Grzegorz...]]></name></author>
<updated>2015-03-09T20:43:35+01:00</updated>
<published>2015-03-09T20:43:35+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10990&amp;p=122816#p122816</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10990&amp;p=122816#p122816"/>
<title type="html"><![CDATA[Re: Arduino i Codeblock]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10990&amp;p=122816#p122816"><![CDATA[
Wydaje mi się, że samo CodeBlock może mieć problem z Arduino.<br />Może spróbuj tego: <!-- m --><a class="postlink" href="http://arduinodev.com/codeblocks/" >http://arduinodev.com/codeblocks/</a><!-- m --><br />Wydaje mi się, że powinno działać (piszę wydaje, bo nie posiadam żadnego Arduino aby to sprawdzić).<br /><br />-- <br />Grzegorz...<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1748">Grzegorz...</a> — 9 mar 2015, o 20:43</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[marekm]]></name></author>
<updated>2015-03-09T20:04:39+01:00</updated>
<published>2015-03-09T20:04:39+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10990&amp;p=122799#p122799</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10990&amp;p=122799#p122799"/>
<title type="html"><![CDATA[Arduino i Codeblock]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10990&amp;p=122799#p122799"><![CDATA[
Witam.<br />Zacząłem zabawę z arduino nano, znalazłem w necie kod do DS18b20, po wklejeniu go do softu arduino, kompiluje go, wrzucam do cpu i działa, ale z racji że nie podoba mi się soft arduino, to w necie znalazłem Codeblocks, soft nieduży, działa bez jawy (po uruchomieniu softu arduino obciążenie mojego CPU wzrasta o 30% i komp zaczyna mi wyć). Po wklejeniu tego samego kodu do Codeblocks, nie chce się on kompilować, wywala error &quot;thermo1.ino|75|error: 'printTemperature' was not declared in this scope&quot;.<br />Czy  może mi ktoś powiedzieć  o co w tym chodzi. <br /><br />[syntax=cpp]#include &lt;Arduino.h&gt;<br /><br />/* YourDuino Multiple DS18B20 Temperature Sensors on 1 wire<br />  Connections:<br />  DS18B20 Pinout (Left to Right, pins down, flat side toward you)<br />  - Left   = Ground<br />  - Center = Signal (Pin 10):  (with 3.3K to 4.7K resistor to +5 or 3.3 )<br />  - Right  = +5 or +3.3 V<br /><br />   Questions: terry@yourduino.com<br />   V1.01  01/17/2013 ...based on examples from Rik Kretzinger<br /><br />/*-----( Import needed libraries )-----*/<br />// Get 1-wire Library here: http://www.pjrc.com/teensy/td_libs_OneWire.html<br />#include &lt;OneWire.h&gt;<br /><br />//Get DallasTemperature Library here:  http://milesburton.com/Main_Page?title=Dallas_Temperature_Control_Library<br />#include &lt;DallasTemperature.h&gt;<br /><br />/*-----( Declare Constants and Pin Numbers )-----*/<br />#define ONE_WIRE_BUS_PIN 10<br /><br />/*-----( Declare objects )-----*/<br />// Setup a oneWire instance to communicate with any OneWire devices<br />OneWire oneWire(ONE_WIRE_BUS_PIN);<br /><br />// Pass our oneWire reference to Dallas Temperature.<br />DallasTemperature sensors(&amp;oneWire);<br /><br />/*-----( Declare Variables )-----*/<br />// Assign the addresses of your 1-Wire temp sensors.<br />// See the tutorial on how to obtain these addresses:<br />// http://www.hacktronics.com/Tutorials/arduino-1-wire-address-finder.html<br /><br />DeviceAddress Probe01 = { 0x28, 0x79, 0x42, 0xC4, 0x04, 0x00, 0x00, 0xD3 };<br />DeviceAddress Probe02 = { 0x28, 0xF7, 0x27, 0xC3, 0x04, 0x00, 0x00, 0x6F };<br /><br />// 287942C4040000D3<br />// 28F727C30400006F<br /><br />void setup()   /****** SETUP: RUNS ONCE ******/<br />{<br />  // start serial port to show results<br />  Serial.begin(57600);<br />  Serial.print(&quot;Initializing Temperature Control Library Version &quot;);<br />  Serial.println(DALLASTEMPLIBVERSION);<br /><br />  // Initialize the Temperature measurement library<br />  sensors.begin();<br /><br />  // set the resolution to 10 bit (Can be 9 to 12 bits .. lower is faster)<br />  sensors.setResolution(Probe01, 9);<br />  sensors.setResolution(Probe02, 9);<br /><br /><br />}//--(end setup )---<br /><br />void loop()   /****** LOOP: RUNS CONSTANTLY ******/<br />{<br />  delay(1000);<br />  Serial.println();<br />  Serial.print(&quot;Number of Devices found on bus = &quot;);<br />  Serial.println(sensors.getDeviceCount());<br />  Serial.print(&quot;Getting temperatures... &quot;);<br />  Serial.println();<br /><br />  // Command all devices on bus to read temperature<br />  sensors.requestTemperatures();<br /><br />  Serial.print(&quot;Probe 01 temperature is:   &quot;);<br />  printTemperature(Probe01);<br />  Serial.println();<br /><br />  Serial.print(&quot;Probe 02 temperature is:   &quot;);<br />  printTemperature(Probe02);<br />  Serial.println();<br /><br /><br /><br />}//--(end main loop )---<br /><br />/*-----( Declare User-written Functions )-----*/<br />void printTemperature(DeviceAddress deviceAddress)<br />{<br /><br />float tempC = sensors.getTempC(deviceAddress);<br /><br />   if (tempC == -127.00)<br />   {<br />   Serial.print(&quot;Error getting temperature  &quot;);<br />   }<br />   else<br />   {<br />   Serial.print(&quot;C: &quot;);<br />   Serial.print(tempC);<br />   Serial.print(&quot; F: &quot;);<br />   Serial.print(DallasTemperature::toFahrenheit(tempC));<br />   }<br />}// End printTemperature[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=147">marekm</a> — 9 mar 2015, o 20:04</p><hr />
]]></content>
</entry>
</feed>