Giter VIP home page Giter VIP logo

Comments (5)

Nobutarou avatar Nobutarou commented on September 25, 2024

https://qiita.com/hsgucci/items/eee5894e3651d0a8cb75

これ見ればなんとかなるだろう

from arduinodeasobu.

Nobutarou avatar Nobutarou commented on September 25, 2024

https://qiita.com/yamanohappa/items/fda70aa430fb414be5d5

これも

from arduinodeasobu.

Nobutarou avatar Nobutarou commented on September 25, 2024

試してるけど指数表記を実数として受けとらないんだな。

from arduinodeasobu.

Nobutarou avatar Nobutarou commented on September 25, 2024

指数表記が標準で使えないの厳しいな。

// C++ code
//
void setup()
{
  Serial.begin(115200);
}

void loop()
{
  double registor;
  double x,y; // general purpose
  int i; //
  char a; // general purpose
  
  Serial.println("Input the registor [Ohm]");

  while (Serial.available() == 0) {};
  x=Serial.parseFloat();
  a=Serial.read();
  i=Serial.parseInt();
  
  registor=x*pow(10.0,i);
  Serial.println(x, 16);
  Serial.println(a);
  Serial.println(i,16);

  Serial.println(registor,16);
  Serial.println("loop");
}

from arduinodeasobu.

Nobutarou avatar Nobutarou commented on September 25, 2024

https://www.tinkercad.com/things/7LkRLy1Edjh-neat-bojo-jarv/editel?returnTo=%2Fdashboard&sharecode=RwXXj0wF1qpnyLkJShwvtKxb9IJbJWvaujqo2AU9kY4

これで抵抗値を入力できる。
指数入力のエラー処理がないけど、今は実力不足だし、自分専用だから良いでしょう

from arduinodeasobu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.