diff options
author | Sumeet Koli | 2018-06-27 13:14:10 +0530 |
---|---|---|
committer | Sumeet Koli | 2018-06-27 13:14:10 +0530 |
commit | e100b91a6533f1eaceda2afc3162ec393f4e5475 (patch) | |
tree | 49f5c28daa3ba5e64bfd8ac985a6ceaf6f7708df /package.mo | |
parent | 773e2f1fcd71c2a6a857ca5ad6fea748b0962d98 (diff) | |
download | OpenModelicaEmbedded-e100b91a6533f1eaceda2afc3162ec393f4e5475.tar.gz OpenModelicaEmbedded-e100b91a6533f1eaceda2afc3162ec393f4e5475.tar.bz2 OpenModelicaEmbedded-e100b91a6533f1eaceda2afc3162ec393f4e5475.zip |
Bug fixes
Diffstat (limited to 'package.mo')
-rw-r--r-- | package.mo | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -381,10 +381,10 @@ end BlinkLed; model SimpleONOFF "A simple On/Off controller" extends Modelica.Icons.Example; OpenModelicaEmbedded.Boards.Arduino arduino(Port = "/dev/ttyACM0") annotation(Placement(visible = true, transformation(origin = {0, 15}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); - OpenModelicaEmbedded.Pins.AnalogInput analogInput1(MaxValue = 3.3 * 100,Pin = 16, adcResolution = 12) annotation(Placement(visible = true, transformation(origin = {30, 15}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); + OpenModelicaEmbedded.Pins.AnalogInput analogInput1(MaxValue = 1023,Pin = 16, adcResolution = 10) annotation(Placement(visible = true, transformation(origin = {30, 15}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); Modelica.Blocks.Sources.Constant Reference(k = 40) annotation(Placement(visible = true, transformation(origin = {35, -25}, extent = {{-10, -10}, {10, 10}}, rotation = -180))); Modelica.Blocks.Math.Add add1(k2 = +1, k1 = -1) annotation(Placement(visible = true, transformation(origin = {-0, -25}, extent = {{10, -10}, {-10, 10}}, rotation = 0))); - Pins.DigitalOutput digitalOutput(Pin = 30) annotation(Placement(visible = true, transformation(origin = {-30, 15}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); + Pins.DigitalOutput digitalOutput(Pin = 9) annotation(Placement(visible = true, transformation(origin = {-30, 15}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); Modelica.Blocks.Logical.Hysteresis hysteresis(uLow = -1, uHigh = 1) annotation(Placement(visible = true, transformation(origin = {-30, -25}, extent = {{10, -10}, {-10, 10}}, rotation = 0))); Modelica_DeviceDrivers.Blocks.OperatingSystem.SynchronizeRealtime synchronizeRealtime1 annotation( Placement(visible = true, transformation(origin = {42.5, 42.5}, extent = {{-7.5, -7.5}, {7.5, 7.5}}, rotation = 0))); |