title: Is it possible to have two files in the src folder in PlatformIO (Atom)?
body: <p>When I create two code files in the <code>src</code> folder on PlatformIO (microcontroller plugin for Atom), I get an error when building and uploading to my Arduino. Is there a way to do this without the error?</p>
  
  <p>I have looked at a tutorial online by Robin Reiter and it suggests you can do this.</p>
  
  <p><img src="https://i.stack.imgur.com/ZqdPt.png" alt="&quot;PlatformIO - A Great Arduino IDE Alternative&quot; - youtube scrn shot"></p>
  
  <p>When I try this I get an error. The program runs fine when I have just one file in the <code>src</code> folder.</p>
  
  <blockquote>
    <p>Error: *** [.pioenvs/uno/src/flashLed2.ino.o] Error 1</p>
  </blockquote>
  
  <p><img src="https://i.stack.imgur.com/eC51Y.png" alt="Atom with Platformio installed"></p>
  
  <p>NB: this was a project file imported from an Arduino IDE project (the <code>.ino</code>) but also happens if I create the project, use the <code>.cpp</code> extension and paste the code into the text file.</p>
  
  <p>How can I create multiple files in one project?</p>