Пример #1
0
        void AddLibraries(string folderPath)
        {
            DirectoryInfo folder = new DirectoryInfo(folderPath);

            foreach (var subFolder in folder.EnumerateDirectories())
            {
                ArduinoLibrary lib = new ArduinoLibrary(subFolder);
                libraries.Add(lib);
                Console.WriteLine("=====================================================");
                Console.WriteLine(String.Format("{0}: {1}", lib.Name, lib.Path));
                Console.WriteLine("-----------------------------------------------------");
                foreach (var header in lib.Headers)
                {
                    importToLibraryTable[header.Name] = lib;
                    Console.WriteLine(String.Format("\t{0}", header.Name));
                }
                Console.WriteLine("-----------------------------------------------------");
                foreach (var source in lib.Sources)
                {
                    Console.WriteLine(String.Format("\t{0}", source.Name));
                }
            }
        }
Пример #2
0
 void AddLibraries(string folderPath)
 {
     DirectoryInfo folder = new DirectoryInfo(folderPath);
     foreach (var subFolder in folder.EnumerateDirectories())
     {
         ArduinoLibrary lib = new ArduinoLibrary(subFolder);
         libraries.Add(lib);
         Console.WriteLine("=====================================================");
         Console.WriteLine(String.Format("{0}: {1}", lib.Name, lib.Path));
         Console.WriteLine("-----------------------------------------------------");
         foreach (var header in lib.Headers)
         {
             importToLibraryTable[header.Name] = lib;
             Console.WriteLine(String.Format("\t{0}", header.Name));
         }
         Console.WriteLine("-----------------------------------------------------");
         foreach (var source in lib.Sources)
         {
             Console.WriteLine(String.Format("\t{0}", source.Name));
         }
     }
 }